Skip to content

Commit

Permalink
nixos/tests/acme: go compat update, unvendor pkcs11
Browse files Browse the repository at this point in the history
  • Loading branch information
srhb committed Mar 8, 2018
1 parent 51954f1 commit bd35580
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions nixos/tests/common/letsencrypt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ let
boulder = let
owner = "letsencrypt";
repo = "boulder";
rev = "9866abab8962a591f06db457a4b84c518cc88243";
version = "20170510";
rev = "9c6a1f2adc4c26d925588f5ae366cfd4efb7813a";
version = "20180129";

in pkgs.buildGoPackage rec {
name = "${repo}-${version}";

src = pkgs.fetchFromGitHub {
name = "${name}-src";
inherit rev owner repo;
sha256 = "170m5cjngbrm36wi7wschqw8jzs7kxpcyzmshq3pcrmcpigrhna1";
sha256 = "09kszswrifm9rc6idfaq0p1mz5w21as2qbc8gd5pphrq9cf9pn55";
};

postPatch = ''
Expand All @@ -168,6 +168,18 @@ let
cat "${snakeOilCa}/ca.pem" > test/test-ca.pem
'';

# Until vendored pkcs11 is go 1.9 compatible
preBuild = ''
rm -r go/src/github.com/letsencrypt/boulder/vendor/github.com/miekg/pkcs11
'';

extraSrcs = map mkGoDep [
{ goPackagePath = "github.com/miekg/pkcs11";
rev = "6dbd569b952ec150d1425722dbbe80f2c6193f83";
sha256 = "1m8g6fx7df6hf6q6zsbyw1icjmm52dmsx28rgb0h930wagvngfwb";
}
];

goPackagePath = "github.com/${owner}/${repo}";
buildInputs = [ pkgs.libtool ];
};
Expand Down

0 comments on commit bd35580

Please sign in to comment.