diff --git a/pkgs/applications/networking/cluster/pachyderm/default.nix b/pkgs/applications/networking/cluster/pachyderm/default.nix index 570481f49b27..f199edce212d 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"; }; }