mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
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.
36 lines
940 B
Nix
36 lines
940 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "vivid";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sharkdp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "00xxk1ipr3hndd717q52j7s2wfxis1p4glaa9lvp72gwwzmv5k9w";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/main.rs --replace /usr/share $out/share
|
|
'';
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "04xx26ngz7hx7bv5g01q9h6dqa96xkx0xm3jb0qk6c3hp6500zpn";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/${pname}
|
|
cp -rv config/* themes $out/share/${pname}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A generator for LS_COLORS with support for multiple color themes";
|
|
homepage = https://github.com/sharkdp/vivid;
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = [ maintainers.dtzWill ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|