3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/git-and-tools/git-ignore/default.nix

36 lines
953 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, installShellFiles, rustPlatform, pkg-config, openssl, darwin }:
with rustPlatform;
buildRustPackage rec {
2019-04-19 15:34:40 +01:00
pname = "git-ignore";
2021-01-18 21:24:20 +00:00
version = "1.1.1";
src = fetchFromGitHub {
owner = "sondr3";
2019-04-19 15:34:40 +01:00
repo = pname;
rev = "v${version}";
2021-01-18 21:24:20 +00:00
sha256 = "sha256-bKIBPqGKiS3ey8vH2F4EoleV1H2PTOp+71d/YW3jkT0=";
};
cargoSha256 = "sha256-7jPNVBf5DYtE8nsh7LIywMCjU7ODZ3qFsmBie2mZ3h8=";
2019-04-19 15:34:40 +01:00
nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ openssl ]
2021-01-15 13:21:58 +00:00
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
outputs = [ "out" "man" ];
2019-04-19 15:34:40 +01:00
preFixup = ''
installManPage $releaseDir/build/git-ignore-*/out/git-ignore.1
2019-04-19 15:34:40 +01:00
'';
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 ];
};
}