2023-03-14 15:57:20 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
|
|
|
, pkg-config
|
|
|
|
, libgpg-error
|
|
|
|
, gpgme
|
|
|
|
, dbus
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-ps-rs";
|
2023-09-08 18:04:58 +00:00
|
|
|
version = "6.9.0";
|
2023-03-14 15:57:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uptech";
|
|
|
|
repo = "git-ps-rs";
|
|
|
|
rev = version;
|
2023-09-08 18:04:58 +00:00
|
|
|
hash = "sha256-D6613T87jLEur8WXHed2cSKVafKVfgGWap/z/UBe31U=";
|
2023-03-14 15:57:20 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"home-dir-0.1.0" = "sha256-k5GYZcR1FI/JEfJhPWOdICBZ9CqJCqX+fYygxxWvFp4=";
|
|
|
|
};
|
|
|
|
};
|
2023-03-14 15:57:20 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gpgme # gpgme runs a small script at build time so has to go here
|
|
|
|
];
|
|
|
|
|
2023-05-05 19:21:52 +00:00
|
|
|
buildInputs = [ openssl dbus libgpg-error gpgme ]
|
2023-03-14 15:57:20 +00:00
|
|
|
++ 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 ];
|
|
|
|
};
|
|
|
|
}
|