diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-10-18 16:32:00 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-10-18 16:32:00 +0000 |
commit | 0f74f62ee25ac2d21bd67c29b8efc3ad079a72a8 (patch) | |
tree | bd701e982d896952f4291e4b795c85bb581593b8 /nixpkgs/pkgs/development/tools/conftest/default.nix | |
parent | dae1ae41b3a575e87d411e0cd9daa42a85c5aa89 (diff) | |
parent | 1c40ee6fc44f7eb474c69ea070a43247a1a2c83c (diff) |
Merge commit '1c40ee6fc44f7eb474c69ea070a43247a1a2c83c'
Diffstat (limited to 'nixpkgs/pkgs/development/tools/conftest/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/conftest/default.nix | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/tools/conftest/default.nix b/nixpkgs/pkgs/development/tools/conftest/default.nix index 4c8792cc6aa..a4a6a7998b0 100644 --- a/nixpkgs/pkgs/development/tools/conftest/default.nix +++ b/nixpkgs/pkgs/development/tools/conftest/default.nix @@ -2,27 +2,32 @@ buildGoModule rec { pname = "conftest"; - version = "0.12.0"; + version = "0.14.0"; + + # Something subtle in the go sum db is causing every download to + # get a new sum (and thus breaking the hash). This disables the + # fetching of the sum from the go sum database. + modBuildPhase = '' + runHook preBuild + GONOSUMDB=* go mod download + runHook postBuild + ''; src = fetchFromGitHub { owner = "instrumenta"; repo = "conftest"; rev = "v${version}"; - sha256 = "0blrbbnvnnxyw0idhglqdz16i7g6g86a6kw2iw707bg0yfdl1ncq"; + sha256 = "0fjz6ad8rnznlp1kiyb3c6anhjs6v6acgziw4hmyz0xva4jnspsh"; }; - patches = [ - # Version 0.12.0 does not build with go 1.13. See https://github.com/instrumenta/conftest/pull/85. - # TODO: Remove once https://github.com/instrumenta/conftest/pull/85 is merged and lands in a release. - ./go-1.13-deps.patch - ]; + modSha256 = "1xwqlqx5794hsi14h5gqg69gjcqcma24ha0fxn0vffqgqs2cz1d1"; buildFlagsArray = '' -ldflags= -X main.version=${version} ''; - modSha256 = "11999ywy73ng45gl1qypky8342jvishcp11bdxbigvqhwl2zbpav"; + subPackages = [ "cmd" ]; meta = with lib; { description = "Write tests against structured configuration data"; |