diff options
author | aszlig <aszlig@nix.build> | 2018-07-12 00:52:16 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-07-12 02:32:44 +0200 |
commit | c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0 (patch) | |
tree | 1721c12290473cdb1cf82f61d2bae401ddc6a9e0 /nixos | |
parent | 4794aa5de233b5bf2d1c3245946379699d023467 (diff) | |
download | nixlib-c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0.tar nixlib-c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0.tar.gz nixlib-c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0.tar.bz2 nixlib-c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0.tar.lz nixlib-c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0.tar.xz nixlib-c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0.tar.zst nixlib-c21b1ede95de8bead6a83b8f182fd17f2c6a0ee0.zip |
nixos/tests/letsencrypt: Fix go source install
Since e95f17e2720e67e2eabd59d7754c814d3e27a0b2, Go packages no longer contain the source tree, however Boulder seems to need that as it generates a few files during build. Ideally we would only pick the files that are needed and put it into a separate output, but I currently don't have time for this so I'm marking this with XXX to get back to it later. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/common/letsencrypt.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/tests/common/letsencrypt.nix b/nixos/tests/common/letsencrypt.nix index 2c86fe8d68bc..d77491f40500 100644 --- a/nixos/tests/common/letsencrypt.nix +++ b/nixos/tests/common/letsencrypt.nix @@ -173,6 +173,21 @@ let rm -r go/src/github.com/letsencrypt/boulder/vendor/github.com/miekg/pkcs11 ''; + # XXX: Temporarily brought back putting the source code in the output, + # since e95f17e2720e67e2eabd59d7754c814d3e27a0b2 was removing that from + # buildGoPackage. + preInstall = '' + mkdir -p $out + pushd "$NIX_BUILD_TOP/go" + while read f; do + echo "$f" | grep -q '^./\(src\|pkg/[^/]*\)/${goPackagePath}' \ + || continue + mkdir -p "$(dirname "$out/share/go/$f")" + cp "$NIX_BUILD_TOP/go/$f" "$out/share/go/$f" + done < <(find . -type f) + popd + ''; + extraSrcs = map mkGoDep [ { goPackagePath = "github.com/miekg/pkcs11"; rev = "6dbd569b952ec150d1425722dbbe80f2c6193f83"; |