about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-11-29 09:29:20 -0500
committerGitHub <noreply@github.com>2022-11-29 09:29:20 -0500
commitedff869405227a27286a0a0dc7f8ddf343fea3f3 (patch)
tree594340de1d239a2a97d238f4076b2e4cdec51a5c
parentb8c928cb8e55642432860fe3e8213eda9d73eb5f (diff)
parenteaea7d9eabb3dd0bf57a016861082d720d84745e (diff)
Merge pull request #202663 from aaronjheng/pachyderm
pachyderm: 1.8.5 -> 2.4.0
-rw-r--r--pkgs/applications/networking/cluster/pachyderm/default.nix30
1 files changed, 18 insertions, 12 deletions
diff --git a/pkgs/applications/networking/cluster/pachyderm/default.nix b/pkgs/applications/networking/cluster/pachyderm/default.nix
index 570481f49b27e..f199edce212db 100644
--- a/pkgs/applications/networking/cluster/pachyderm/default.nix
+++ b/pkgs/applications/networking/cluster/pachyderm/default.nix
@@ -1,25 +1,31 @@
-{ lib, fetchFromGitHub, buildGoPackage }:
+{ lib, fetchFromGitHub, buildGoModule }:
 
-buildGoPackage rec {
+buildGoModule rec {
   pname = "pachyderm";
-  version = "1.8.5";
-  rev = "v${version}";
-
-  goPackagePath = "github.com/pachyderm/pachyderm";
-  subPackages = [ "src/server/cmd/pachctl" ];
+  version = "2.4.0";
 
   src = fetchFromGitHub {
-    inherit rev;
     owner = "pachyderm";
     repo = "pachyderm";
-    sha256 = "1b9x2xn0sxsjid15lnwr79lps8xzf24i7jfl0i48nabdigmi04wp";
+    rev = "v${version}";
+    hash = "sha256-8JAn7/ge1bCkHsZC1tG46N1eag0Itvlj5TW+8oSWXd8=";
   };
 
+  vendorHash = "sha256-j7zg0vIhdYbzyi4owdVEF4XyUNwGds6J01+3k5K90Yg=";
+
+  subPackages = [ "src/server/cmd/pachctl" ];
+
+  ldflags = [
+    "-s"
+    "-w"
+    "-X github.com/pachyderm/pachyderm/v${lib.versions.major version}/src/version.AppVersion=${version}"
+  ];
+
   meta = with lib; {
     description = "Containerized Data Analytics";
-    homepage = "https://github.com/pachyderm/pachyderm";
-    license = licenses.asl20;
-    maintainers = with maintainers; [offline];
+    homepage = "https://www.pachyderm.com/";
+    license = licenses.unfree;
+    maintainers = with maintainers; [ offline ];
     mainProgram = "pachctl";
   };
 }