diff options
Diffstat (limited to '')
-rw-r--r-- | pastebins.md | 3 | ||||
-rw-r--r-- | pastebins/failure-on-guix-tex-live-importer.md (renamed from site/pastebin/failure-on-guix-tex-live-importer.org) | 10 | ||||
-rw-r--r-- | pastebins/inconsistent-hash-of-buildgomodule.md (renamed from site/pastebin/inconsistent-hash-of-buildgomodule.org) | 69 | ||||
-rw-r--r-- | pastebins/nix-exps.md (renamed from site/pastebin/nix-exps.org) | 10 | ||||
-rw-r--r-- | pastebins/nix-show-derivation.md (renamed from site/pastebin/nix-show-derivation.org) | 10 | ||||
-rw-r--r-- | pastebins/raku-tuple-type-annotation.md (renamed from site/pastebin/raku-tuple-type-annotation.org) | 14 |
6 files changed, 61 insertions, 55 deletions
diff --git a/pastebins.md b/pastebins.md new file mode 100644 index 0000000..a1789a1 --- /dev/null +++ b/pastebins.md @@ -0,0 +1,3 @@ +--- +layout: pastebins +--- diff --git a/site/pastebin/failure-on-guix-tex-live-importer.org b/pastebins/failure-on-guix-tex-live-importer.md index cb86621..410d768 100644 --- a/site/pastebin/failure-on-guix-tex-live-importer.org +++ b/pastebins/failure-on-guix-tex-live-importer.md @@ -1,8 +1,6 @@ ---- -title: Failure on Guix TeX Live importer -date: 2020-01-04 ---- -#+BEGIN_SRC shell -n +--- title: Failure on Guix TeX Live importer date: 2020-01-04 --- + +``` {.shell .numberLines startFrom=""} $ guix import texlive fontspec redirection vers « https://ctan.org/xml/1.2/pkg/fontspec »... Backtrace: @@ -32,4 +30,4 @@ In guix/build/utils.scm: guix/build/utils.scm:652:6: In procedure invoke: Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "svn" arguments: ("export" "--non-interactive" "--trust-server-cert" "-r" "49435" "svn://www.tug.org/texlive/tags/texlive-2018.2/Master/texmf-dist/source/latex/fontspec" "/tmp/guix-directory.WtLohP") exit-status: 1 term-signal: #f stop-signal: #f] 7fe80d229c80>)'. -#+END_SRC +``` diff --git a/site/pastebin/inconsistent-hash-of-buildgomodule.org b/pastebins/inconsistent-hash-of-buildgomodule.md index 2aa7d96..3cdc823 100644 --- a/site/pastebin/inconsistent-hash-of-buildgomodule.org +++ b/pastebins/inconsistent-hash-of-buildgomodule.md @@ -1,29 +1,35 @@ ---- -title: Inconsistent hash of buildGoModule -date: 2019-06-08 ---- -[[https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2][FIXED]]. +--- title: Inconsistent hash of buildGoModule date: 2019-06-08 --- +[FIXED](https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2). -The [[https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438][commit that made this visible]]. -* Offending derivation: -[[https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15][Full source code on sr.ht]]: -#+BEGIN_SRC nix -n - terraform-godaddy = pkgs.buildGoModule rec { - name = "terraform-godaddy-${version}"; - version = "1.6.4"; - src = pkgs.fetchFromGitHub { - owner = "n3integration"; - repo = "terraform-godaddy"; - rev = "v${version}"; - sha256 = "00blqsan74s53dk9ab4hxi1kzxi46k57dr65dmbiradfa3yz3852"; - }; - modSha256 = "0p81wqw2n8vraxk20xwg717582ijwq2k7v5j3n13y4cd5bxd8hhz"; - postInstall = - "mv $out/bin/terraform-godaddy $out/bin/terraform-provider-godaddy"; +The [commit that made this +visible](https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438). + +Offending derivation: +===================== + +[Full source code on +sr.ht](https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15): + +``` {.nix .numberLines startFrom=""} +terraform-godaddy = pkgs.buildGoModule rec { + name = "terraform-godaddy-${version}"; + version = "1.6.4"; + src = pkgs.fetchFromGitHub { + owner = "n3integration"; + repo = "terraform-godaddy"; + rev = "v${version}"; + sha256 = "00blqsan74s53dk9ab4hxi1kzxi46k57dr65dmbiradfa3yz3852"; }; -#+END_SRC -* Local build: -#+BEGIN_SRC shell -n + modSha256 = "0p81wqw2n8vraxk20xwg717582ijwq2k7v5j3n13y4cd5bxd8hhz"; + postInstall = + "mv $out/bin/terraform-godaddy $out/bin/terraform-provider-godaddy"; +}; +``` + +Local build: +============ + +``` {.shell .numberLines startFrom=""} $ nix-build -A terraform-godaddy these derivations will be built: /nix/store/3hs274i9qdsg3hsgp05j7i5cqxsvpcqx-terraform-godaddy-1.6.4-go-modules.drv @@ -169,10 +175,15 @@ hash mismatch in fixed-output derivation '/nix/store/jgbfkhlsz6bmq724p5cqqcgfyc7 got: sha256:10n2dy7q9kk1ly58sw965n6qa8l0nffh8vyd1vslx0gdlyj25xxs cannot build derivation '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv': 1 dependencies couldn't be built error: build of '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv' failed -#+END_SRC -* Build [[https://builds.sr.ht/~euandreh/job/67836#task-setup-0][on CI]]: -The =setup.sh= script contains a call to =nix-shell= which in turns build the same =terraform-godaddy= derivation: -#+BEGIN_SRC shell -n +``` + +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 warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring @@ -1030,4 +1041,4 @@ hash mismatch in fixed-output derivation '/nix/store/q8y0mzjl78hfhazjgq2sc84i7dp cannot build derivation '/nix/store/w4ghinrmpq524k3617ikfc8i42aa0dbb-terraform-godaddy-1.6.4.drv': 1 dependencies couldn't be built copying path '/nix/store/63gjp25l4cmdkl63zy0rcgmsvd2p2p34-terraform-0.11.14' from 'https://cache.nixos.org'... error: build of '/nix/store/9drkn1qxkkcrz5g3413lpmbc2xysa582-terraform-0.11.14.drv', '/nix/store/w4ghinrmpq524k3617ikfc8i42aa0dbb-terraform-godaddy-1.6.4.drv' failed -#+END_SRC +``` diff --git a/site/pastebin/nix-exps.org b/pastebins/nix-exps.md index 997d6ab..426d681 100644 --- a/site/pastebin/nix-exps.org +++ b/pastebins/nix-exps.md @@ -1,8 +1,6 @@ ---- -title: Nix Stuff -date: 2018-07-25 ---- -#+BEGIN_SRC nix -n +--- title: Nix Stuff date: 2018-07-25 --- + +``` {.nix .numberLines startFrom=""} let pkgsOriginal = import <nixpkgs> {}; pkgsSrc = pkgsOriginal.fetchzip { @@ -43,4 +41,4 @@ in rec { ''; }; } -#+END_SRC +``` diff --git a/site/pastebin/nix-show-derivation.org b/pastebins/nix-show-derivation.md index 96d2c66..2daec81 100644 --- a/site/pastebin/nix-show-derivation.org +++ b/pastebins/nix-show-derivation.md @@ -1,8 +1,6 @@ ---- -title: nix show-derivation sample output -date: 2018-07-25 ---- -#+BEGIN_SRC nix -n +--- title: nix show-derivation sample output date: 2018-07-25 --- + +``` {.nix .numberLines startFrom=""} $ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv { "/nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv": { @@ -71,4 +69,4 @@ $ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2. } } } -#+END_SRC +``` diff --git a/site/pastebin/raku-tuple-type-annotation.org b/pastebins/raku-tuple-type-annotation.md index 8d0e55f..6d5957f 100644 --- a/site/pastebin/raku-tuple-type-annotation.org +++ b/pastebins/raku-tuple-type-annotation.md @@ -1,8 +1,6 @@ ---- -title: Raku tuple type annotation -date: 2019-12-29 ---- -#+BEGIN_SRC raku -n +--- title: Raku tuple type annotation date: 2019-12-29 --- + +``` {.raku .numberLines startFrom=""} # Single Str return value: this works sub f1(Str $in --> Str) { $in; @@ -18,11 +16,11 @@ sub f2(Str $in --> (Str, Str)) { ($in, $in); } -#+END_SRC +``` Error log is: -#+BEGIN_SRC text -n +``` {.text .numberLines startFrom=""} ===SORRY!=== Error while compiling /path/to/my/file Malformed return value -#+END_SRC +``` |