From ff68cad0728e4aae10033b7b63db866e77c9049f Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Tue, 14 Mar 2023 16:57:20 +0100 Subject: [PATCH] git-ps-rs: init at version 6.5.0 Added the `gps` packaged as `git-ps-rs` for managing patch stacks. Signed-off-by: Ali Caglayan --- pkgs/development/tools/git-ps-rs/default.nix | 40 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/tools/git-ps-rs/default.nix 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 c33c8bba222..0466ea74040 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 { };