diff options
author | EuAndreh <eu@euandre.org> | 2020-02-06 00:19:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-06 00:19:36 -0300 |
commit | c097bdb3ba09b0292d944fcc518a1cad6ab03ff2 (patch) | |
tree | c7a105ac4315162bd1390a04a8b9a74df05a2cf8 /_pastebins | |
parent | Use custom date format for pt (diff) | |
download | euandre.org-c097bdb3ba09b0292d944fcc518a1cad6ab03ff2.tar.gz euandre.org-c097bdb3ba09b0292d944fcc518a1cad6ab03ff2.tar.xz |
Sanitize markdown content
Diffstat (limited to '_pastebins')
-rw-r--r-- | _pastebins/inconsistent-hash-of-buildgomodule.md | 26 | ||||
-rw-r--r-- | _pastebins/nix-exps.md | 3 | ||||
-rw-r--r-- | _pastebins/nix-show-derivation.md | 3 | ||||
-rw-r--r-- | _pastebins/raku-tuple-type-annotation.md | 4 |
4 files changed, 17 insertions, 19 deletions
diff --git a/_pastebins/inconsistent-hash-of-buildgomodule.md b/_pastebins/inconsistent-hash-of-buildgomodule.md index 87663c5..a15033d 100644 --- a/_pastebins/inconsistent-hash-of-buildgomodule.md +++ b/_pastebins/inconsistent-hash-of-buildgomodule.md @@ -2,19 +2,17 @@ title: Inconsistent hash of buildGoModule date: 2019-06-08 layout: pastebin +lang: en --- [FIXED](https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2). -The [commit that made this -visible](https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438). +The [commit that made this visible](https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438). -Offending derivation: -===================== +# Offending derivation: -[Full source code on -sr.ht](https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15): +[Full source code on sr.ht](https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15): -``` {.nix .numberLines startFrom=""} +```nix terraform-godaddy = pkgs.buildGoModule rec { name = "terraform-godaddy-${version}"; version = "1.6.4"; @@ -30,10 +28,9 @@ terraform-godaddy = pkgs.buildGoModule rec { }; ``` -Local build: -============ +# Local build: -``` {.shell .numberLines startFrom=""} +```shell $ nix-build -A terraform-godaddy these derivations will be built: /nix/store/3hs274i9qdsg3hsgp05j7i5cqxsvpcqx-terraform-godaddy-1.6.4-go-modules.drv @@ -181,15 +178,14 @@ cannot build derivation '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-g error: build of '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv' failed ``` -Build [on CI](https://builds.sr.ht/~euandreh/job/67836#task-setup-0): -===================================================================== +# Build [on CI](https://builds.sr.ht/~euandreh/job/67836#task-setup-0): The `setup.sh` script contains a call to `nix-shell` which in turns build the same `terraform-godaddy` derivation: -``` {.shell .numberLines startFrom=""} -+ cd vps/ -+ ./scripts/ci/setup.sh +```.shell +$ cd vps/ +$ ./scripts/ci/setup.sh warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring these derivations will be built: /nix/store/as9r3n55czsdiq82iacs0hq12alxb2m0-remove-references-to.drv diff --git a/_pastebins/nix-exps.md b/_pastebins/nix-exps.md index d2ad658..d0ee26b 100644 --- a/_pastebins/nix-exps.md +++ b/_pastebins/nix-exps.md @@ -2,9 +2,10 @@ title: Nix Stuff date: 2018-07-25 layout: pastebin +lang: en --- -``` {.nix .numberLines startFrom=""} +```nix let pkgsOriginal = import <nixpkgs> {}; pkgsSrc = pkgsOriginal.fetchzip { diff --git a/_pastebins/nix-show-derivation.md b/_pastebins/nix-show-derivation.md index d60d443..90ec80e 100644 --- a/_pastebins/nix-show-derivation.md +++ b/_pastebins/nix-show-derivation.md @@ -2,9 +2,10 @@ title: nix show-derivation sample output date: 2018-07-25 layout: pastebin +lang: en --- -``` {.nix .numberLines startFrom=""} +```nix $ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv { "/nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv": { diff --git a/_pastebins/raku-tuple-type-annotation.md b/_pastebins/raku-tuple-type-annotation.md index cdd387e..303cf8d 100644 --- a/_pastebins/raku-tuple-type-annotation.md +++ b/_pastebins/raku-tuple-type-annotation.md @@ -4,7 +4,7 @@ date: 2019-12-29 layout: pastebin --- -``` {.raku .numberLines startFrom=""} +```raku # Single Str return value: this works sub f1(Str $in --> Str) { $in; @@ -24,7 +24,7 @@ sub f2(Str $in --> (Str, Str)) { Error log is: -``` {.text .numberLines startFrom=""} +``` ===SORRY!=== Error while compiling /path/to/my/file Malformed return value ``` |