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

36 lines
960 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, installShellFiles, rustPlatform, pkgconfig, openssl, darwin }:
with rustPlatform;
buildRustPackage rec {
2019-04-19 15:34:40 +01:00
pname = "git-ignore";
version = "1.0.0";
src = fetchFromGitHub {
owner = "sondr3";
2019-04-19 15:34:40 +01:00
repo = pname;
rev = "v${version}";
2019-04-19 15:34:40 +01:00
sha256 = "0krz50pw9bkyzl78bvppk6skbpjp8ga7bd34jya4ha1xfmd8p89c";
};
cargoSha256 = "0vcg2pl0s329fr8p23pwdx2jy7qahbr7n337ib61f69aaxi1xmq0";
2019-04-19 15:34:40 +01:00
nativeBuildInputs = [ pkgconfig installShellFiles ];
buildInputs = [ openssl ]
++ stdenv.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 ];
};
}