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.
35 lines
953 B
Nix
35 lines
953 B
Nix
{ lib, stdenv, fetchFromGitHub, installShellFiles, rustPlatform, pkg-config, openssl, darwin }:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
pname = "git-ignore";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sondr3";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bKIBPqGKiS3ey8vH2F4EoleV1H2PTOp+71d/YW3jkT0=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-D1CIITuZSAsKYsK8U0q8HwPsYCyrfkTXZThxufEEkWU=";
|
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
outputs = [ "out" "man" ];
|
|
preFixup = ''
|
|
installManPage $releaseDir/build/git-ignore-*/out/git-ignore.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Quickly and easily fetch .gitignore templates from gitignore.io";
|
|
homepage = "https://github.com/sondr3/git-ignore";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.sondr3 ];
|
|
};
|
|
}
|