Skip to content

Commit

Permalink
Merge pull request #59889 from sondr3/sondr3/git-ignore-1.0.0
Browse files Browse the repository at this point in the history
git-ignore: 0.2.0 -> 1.0.0
  • Loading branch information
Ma27 committed Apr 20, 2019
2 parents b8243d1 + dd5ac26 commit f1c5590
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,30 @@
with rustPlatform;

buildRustPackage rec {
name = "git-ignore-${version}";
version = "0.2.0";

cargoSha256 = "1fqfy8lnvpn5sd3l73x2p359zq4303vsrdgw3aphvy6580yjb84d";
pname = "git-ignore";
version = "1.0.0";

src = fetchFromGitHub {
owner = "sondr3";
repo = "git-ignore";
repo = pname;
rev = "v${version}";
sha256 = "1nihh5inh46r8jg9z7d6g9gqfyhrznmkn15nmzpbnzf0653dl629";
sha256 = "0krz50pw9bkyzl78bvppk6skbpjp8ga7bd34jya4ha1xfmd8p89c";
};

cargoSha256 = "0r6whz8vghhjyc5vrr0n172nghmi61zj96lk26qm0bgxqyzll1kj";

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];

outputs = [ "out" "man" ];
preFixup = ''
mkdir -p "$man/man/man1"
cp target/release/build/git-ignore-*/out/git-ignore.1 "$man/man/man1/"
'';

meta = with stdenv.lib; {
description = "Quickly and easily fetch .gitignore templates from gitignore.io";
homepage = https://github.com/sondr3/git-ignore;
Expand Down

0 comments on commit f1c5590

Please sign in to comment.