2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles, rustPlatform, pkg-config, openssl, darwin }:
|
2019-02-25 15:47:18 +00:00
|
|
|
|
|
|
|
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";
|
2019-02-25 15:47:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sondr3";
|
2019-04-19 15:34:40 +01:00
|
|
|
repo = pname;
|
2019-02-25 15:47:18 +00:00
|
|
|
rev = "v${version}";
|
2021-01-18 21:24:20 +00:00
|
|
|
sha256 = "sha256-bKIBPqGKiS3ey8vH2F4EoleV1H2PTOp+71d/YW3jkT0=";
|
2019-02-25 15:47:18 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "sha256-7jPNVBf5DYtE8nsh7LIywMCjU7ODZ3qFsmBie2mZ3h8=";
|
2019-04-19 15:34:40 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
2019-02-25 15:47:18 +00:00
|
|
|
buildInputs = [ openssl ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [
|
2019-02-25 15:47:18 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
2019-04-20 07:00:24 +01:00
|
|
|
outputs = [ "out" "man" ];
|
2019-04-19 15:34:40 +01:00
|
|
|
preFixup = ''
|
2020-03-20 06:45:53 +00:00
|
|
|
installManPage $releaseDir/build/git-ignore-*/out/git-ignore.1
|
2019-04-19 15:34:40 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-02-25 15:47:18 +00:00
|
|
|
description = "Quickly and easily fetch .gitignore templates from gitignore.io";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sondr3/git-ignore";
|
2019-02-25 15:47:18 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.sondr3 ];
|
|
|
|
};
|
|
|
|
}
|