depot/third_party/nixpkgs/pkgs/development/tools/git-ps-rs/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

45 lines
942 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, stdenv
, pkg-config
, libgpg-error
, gpgme
, dbus
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "git-ps-rs";
version = "6.8.0";
src = fetchFromGitHub {
owner = "uptech";
repo = "git-ps-rs";
rev = version;
hash = "sha256-M5VLQY+0QOKKygnNHjOutwniWO90y4RReAJoxwWpRSA=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"home-dir-0.1.0" = "sha256-k5GYZcR1FI/JEfJhPWOdICBZ9CqJCqX+fYygxxWvFp4=";
};
};
nativeBuildInputs = [
pkg-config
gpgme # gpgme runs a small script at build time so has to go here
];
buildInputs = [ openssl dbus libgpg-error gpgme ]
++ 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 ];
};
}