2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles, rustPlatform, pkgconfig, 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";
|
|
|
|
version = "1.0.0";
|
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}";
|
2019-04-19 15:34:40 +01:00
|
|
|
sha256 = "0krz50pw9bkyzl78bvppk6skbpjp8ga7bd34jya4ha1xfmd8p89c";
|
2019-02-25 15:47:18 +00:00
|
|
|
};
|
|
|
|
|
2020-02-26 04:20:29 +00:00
|
|
|
cargoSha256 = "0vcg2pl0s329fr8p23pwdx2jy7qahbr7n337ib61f69aaxi1xmq0";
|
2019-04-19 15:34:40 +01:00
|
|
|
|
2020-03-20 06:45:53 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig installShellFiles ];
|
2019-02-25 15:47:18 +00:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|