eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, darwin }:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
pname = "git-ignore";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sondr3";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0krz50pw9bkyzl78bvppk6skbpjp8ga7bd34jya4ha1xfmd8p89c";
|
|
};
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "1ccipxifnm38315qigaq28hlzam2wr8q2p2dbcq96kar6pq377vf";
|
|
|
|
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;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.sondr3 ];
|
|
};
|
|
}
|