2023-03-14 15:57:20 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
|
|
|
, pkg-config
|
|
|
|
, dbus
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-ps-rs";
|
2024-01-12 19:43:35 +00:00
|
|
|
version = "7.0.0";
|
2023-03-14 15:57:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uptech";
|
|
|
|
repo = "git-ps-rs";
|
|
|
|
rev = version;
|
2024-01-12 19:43:35 +00:00
|
|
|
hash = "sha256-HPHFjYfug642NXeNmv50UzsdOAlDR9F/MtgYnzwiZP8=";
|
2023-03-14 15:57:20 +00:00
|
|
|
};
|
|
|
|
|
2024-01-12 19:43:35 +00:00
|
|
|
cargoHash = "sha256-mvRcOwCe5NQ+cJ9brnbZ6HLtLn+fnjYzSBQwA3Qn9PU=";
|
2023-03-14 15:57:20 +00:00
|
|
|
|
2024-01-12 19:43:35 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-03-14 15:57:20 +00:00
|
|
|
|
2024-01-12 19:43:35 +00:00
|
|
|
buildInputs = [ openssl dbus ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
2023-03-14 15:57:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for working with a stack of patches";
|
|
|
|
homepage = "https://git-ps.sh/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ alizter ];
|
|
|
|
};
|
|
|
|
}
|