nixpkgs/pkgs/development/tools/git-ps-rs/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

36 lines
756 B
Nix

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