nixpkgs/pkgs/development/tools/spr/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

29 lines
665 B
Nix

{ lib
, rustPlatform
, fetchCrate
, Security
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "spr";
version = "1.3.4";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-lsdWInJWcofwU3P4vAWcLQeZuV3Xn1z30B7mhODJ4Vc=";
};
cargoSha256 = "sha256-VQg3HDNw+L1FsFtHXnIw6dMVUxV63ZWHCxiknzsqXW8=";
buildInputs = lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "Submit pull requests for individual, amendable, rebaseable commits to GitHub";
mainProgram = "spr";
homepage = "https://github.com/getcord/spr";
license = licenses.mit;
maintainers = with maintainers; [ sven-of-cord ];
};
}