2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
|
|
|
, pkg-config
|
|
|
|
, libgpg-error
|
|
|
|
, gpgme
|
|
|
|
, dbus
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-ps-rs";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "6.9.0";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uptech";
|
|
|
|
repo = "git-ps-rs";
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-D6613T87jLEur8WXHed2cSKVafKVfgGWap/z/UBe31U=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"home-dir-0.1.0" = "sha256-k5GYZcR1FI/JEfJhPWOdICBZ9CqJCqX+fYygxxWvFp4=";
|
|
|
|
};
|
|
|
|
};
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gpgme # gpgme runs a small script at build time so has to go here
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = [ openssl dbus libgpg-error gpgme ]
|
2023-03-24 00:07:29 +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 ];
|
|
|
|
};
|
|
|
|
}
|