diff options
Diffstat (limited to '')
-rw-r--r-- | _pastebins/failure-on-guix-tex-live-importer.md (renamed from site/pastebin/failure-on-guix-tex-live-importer.org) | 7 | ||||
-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) | 7 | ||||
-rw-r--r-- | _pastebins/nix-show-derivation.md (renamed from site/pastebin/nix-show-derivation.org) | 7 | ||||
-rw-r--r-- | _pastebins/raku-tuple-type-annotation.md (renamed from site/pastebin/raku-tuple-type-annotation.org) | 11 |
5 files changed, 64 insertions, 37 deletions
diff --git a/site/pastebin/failure-on-guix-tex-live-importer.org b/_pastebins/failure-on-guix-tex-live-importer.md index cb86621..5b74724 100644 --- a/site/pastebin/failure-on-guix-tex-live-importer.org +++ b/_pastebins/failure-on-guix-tex-live-importer.md @@ -1,8 +1,11 @@ --- title: Failure on Guix TeX Live importer date: 2020-01-04 +layout: pastebin +lang: en --- -#+BEGIN_SRC shell -n + +```shell $ guix import texlive fontspec redirection vers « https://ctan.org/xml/1.2/pkg/fontspec »... Backtrace: @@ -32,4 +35,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..c82438c 100644 --- a/site/pastebin/inconsistent-hash-of-buildgomodule.org +++ b/_pastebins/inconsistent-hash-of-buildgomodule.md @@ -1,29 +1,40 @@ --- title: Inconsistent hash of buildGoModule date: 2019-06-08 +layout: pastebin +lang: en --- -[[https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2][FIXED]]. +[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][0]. + +[0]: https://git.sr.ht/~euandreh/vps/commit/6ba76140238b5e3c7009c201f9f80ac86063f438 + +# Offending derivation: + +[Full source code on sr.ht][1]: + +[1]: https://git.sr.ht/~euandreh/vps/tree/6ba76140238b5e3c7009c201f9f80ac86063f438/default.nix#L3-15 + +```nix +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 $ nix-build -A terraform-godaddy these derivations will be built: /nix/store/3hs274i9qdsg3hsgp05j7i5cqxsvpcqx-terraform-godaddy-1.6.4-go-modules.drv @@ -169,12 +180,16 @@ 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 -+ cd vps/ -+ ./scripts/ci/setup.sh +``` + +# 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 +$ 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 @@ -1030,4 +1045,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..d0ee26b 100644 --- a/site/pastebin/nix-exps.org +++ b/_pastebins/nix-exps.md @@ -1,8 +1,11 @@ --- title: Nix Stuff date: 2018-07-25 +layout: pastebin +lang: en --- -#+BEGIN_SRC nix -n + +```nix let pkgsOriginal = import <nixpkgs> {}; pkgsSrc = pkgsOriginal.fetchzip { @@ -43,4 +46,4 @@ in rec { ''; }; } -#+END_SRC +``` diff --git a/site/pastebin/nix-show-derivation.org b/_pastebins/nix-show-derivation.md index 96d2c66..90ec80e 100644 --- a/site/pastebin/nix-show-derivation.org +++ b/_pastebins/nix-show-derivation.md @@ -1,8 +1,11 @@ --- title: nix show-derivation sample output date: 2018-07-25 +layout: pastebin +lang: en --- -#+BEGIN_SRC nix -n + +```nix $ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv { "/nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv": { @@ -71,4 +74,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..c2de915 100644 --- a/site/pastebin/raku-tuple-type-annotation.org +++ b/_pastebins/raku-tuple-type-annotation.md @@ -1,8 +1,11 @@ --- title: Raku tuple type annotation date: 2019-12-29 +layout: pastebin +lang: en --- -#+BEGIN_SRC raku -n + +```raku # Single Str return value: this works sub f1(Str $in --> Str) { $in; @@ -18,11 +21,11 @@ sub f2(Str $in --> (Str, Str)) { ($in, $in); } -#+END_SRC +``` Error log is: -#+BEGIN_SRC text -n +``` ===SORRY!=== Error while compiling /path/to/my/file Malformed return value -#+END_SRC +``` |