9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
36 lines
1,019 B
Nix
36 lines
1,019 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, makeWrapper, openssl, git, libiconv, Security, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-gone";
|
|
version = "0.3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lunaryorn";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0hhy1yazda9r4n753a5m9jf31fbzmm4v8wvl3pksspj2syglmll8";
|
|
};
|
|
|
|
cargoSha256 = "1g2jijx8y34lid9qwa26v4svab5v9ki6gn9vcfiy61dqa964c3l9";
|
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper installShellFiles ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
postInstall = ''
|
|
installManPage git-gone.1
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/git-gone --prefix PATH : "${lib.makeBinPath [ git ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cleanup stale Git branches of pull requests";
|
|
homepage = "https://github.com/lunaryorn/git-gone";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.marsam ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|