mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
4e0b4a2f50
A small program to quickly and easily fetch .gitignore templates from www.gitignore.io
32 lines
852 B
Nix
32 lines
852 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, darwin }:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
name = "git-ignore-${version}";
|
|
version = "0.2.0";
|
|
|
|
cargoSha256 = "1fqfy8lnvpn5sd3l73x2p359zq4303vsrdgw3aphvy6580yjb84d";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sondr3";
|
|
repo = "git-ignore";
|
|
rev = "v${version}";
|
|
sha256 = "1nihh5inh46r8jg9z7d6g9gqfyhrznmkn15nmzpbnzf0653dl629";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ openssl ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Quickly and easily fetch .gitignore templates from gitignore.io";
|
|
homepage = https://github.com/sondr3/git-ignore;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.sondr3 ];
|
|
};
|
|
}
|