summary refs log tree commit diff
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2022-02-08 15:38:24 +0000
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-02-08 11:51:19 -0800
commit9181a25b036c84e0195cc3737b1666a29f387706 (patch)
tree4d0e45d62b96ce90df236ad0d6a1b63f213203b1
parente9912ce72d015b71784df264fe5efcaa9dfa8253 (diff)
downloadnixpkgs-9181a25b036c84e0195cc3737b1666a29f387706.tar
nixpkgs-9181a25b036c84e0195cc3737b1666a29f387706.tar.gz
nixpkgs-9181a25b036c84e0195cc3737b1666a29f387706.tar.bz2
nixpkgs-9181a25b036c84e0195cc3737b1666a29f387706.tar.lz
nixpkgs-9181a25b036c84e0195cc3737b1666a29f387706.tar.xz
nixpkgs-9181a25b036c84e0195cc3737b1666a29f387706.tar.zst
nixpkgs-9181a25b036c84e0195cc3737b1666a29f387706.zip
syft: 0.36.0 -> 0.37.10
-rw-r--r--pkgs/tools/admin/syft/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/tools/admin/syft/default.nix b/pkgs/tools/admin/syft/default.nix
index 998fcdf59f4..24b6d4ddcb2 100644
--- a/pkgs/tools/admin/syft/default.nix
+++ b/pkgs/tools/admin/syft/default.nix
@@ -2,27 +2,27 @@
 
 buildGoModule rec {
   pname = "syft";
-  version = "0.36.0";
+  version = "0.37.10";
 
   src = fetchFromGitHub {
     owner = "anchore";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-JNW4sozNtLey7uAj1xECR/ui+/1L02moZKuGzWXIh5k=";
+    sha256 = "sha256-j3/WE13djrgI7S6YISg9kPIkV0IR0C65QU8zj0z0MVg=";
     # populate values that require us to use git. By doing this in postFetch we
     # can delete .git afterwards and maintain better reproducibility of the src.
     leaveDotGit = true;
     postFetch = ''
       cd "$out"
       commit="$(git rev-parse HEAD)"
-      source_date_epoch=$(git log --date=format:'%Y-%m-%dT%H:%M:%SZ' -1 --pretty=%ad)
+      source_date_epoch="$(git log --date=format:'%Y-%m-%dT%H:%M:%SZ' -1 --pretty=%ad)"
       substituteInPlace "$out/internal/version/build.go" \
         --replace 'gitCommit = valueNotProvided' "gitCommit = \"$commit\"" \
         --replace 'buildDate = valueNotProvided' "buildDate = \"$source_date_epoch\""
       find "$out" -name .git -print0 | xargs -0 rm -rf
     '';
   };
-  vendorSha256 = "sha256-urDDb+53KSvUOjVRY/geENIQM1vvBUDddlNpQw3LcLg=";
+  vendorSha256 = "sha256-gIcPxSzWzldR9UX4iB2fkwc0BfATT1B+Nge+sGefmj8=";
 
   nativeBuildInputs = [ installShellFiles ];
 
@@ -33,6 +33,7 @@ buildGoModule rec {
     "-w"
     "-X github.com/anchore/syft/internal/version.version=${version}"
     "-X github.com/anchore/syft/internal/version.gitTreeState=clean"
+    "-X github.com/anchore/syft/internal/version.gitDescription=v${version}"
   ];
 
   # tests require a running docker instance