diff --git a/pkgs/development/tools/git-ps-rs/default.nix b/pkgs/development/tools/git-ps-rs/default.nix new file mode 100644 index 00000000000..c7306bb24dc --- /dev/null +++ b/pkgs/development/tools/git-ps-rs/default.nix @@ -0,0 +1,40 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, stdenv +, pkg-config +, libgpg-error +, gpgme +, dbus +, openssl +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "git-ps-rs"; + version = "6.5.0"; + + src = fetchFromGitHub { + owner = "uptech"; + repo = "git-ps-rs"; + rev = version; + hash = "sha256-4wSm3H+98ZJZ+fZdLYshPKafRkPq98Pv3Lwh9o0be6U="; + }; + + cargoHash = "sha256-1p46xvo7abMPlVP8BeQ1j/8QQpK3kCgbTL3cdidfq04="; + + nativeBuildInputs = [ + pkg-config + gpgme # gpgme runs a small script at build time so has to go here + ]; + + buildInputs = [ openssl dbus libgpg-error ] + ++ lib.optionals stdenv.isDarwin [ Security ]; + + meta = with lib; { + description = "Tool for working with a stack of patches"; + homepage = "https://git-ps.sh/"; + license = licenses.mit; + maintainers = with maintainers; [ alizter ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 453137ba68c..461bf0846cf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1900,6 +1900,10 @@ with pkgs; git-privacy = callPackage ../applications/version-management/git-privacy { }; + git-ps-rs = callPackage ../development/tools/git-ps-rs { + inherit (darwin.apple_sdk.frameworks) Security; + }; + git-publish = python3Packages.callPackage ../applications/version-management/git-publish { }; git-quick-stats = callPackage ../applications/version-management/git-quick-stats { };