Merge pull request #98908 from r-ryantm/auto-update/vivid

vivid: 0.5.0 -> 0.6.0
This commit is contained in:
Mario Rodas 2020-09-27 14:46:01 -05:00 committed by GitHub
commit 461704ae11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,24 +2,20 @@
rustPlatform.buildRustPackage rec {
pname = "vivid";
version = "0.5.0";
version = "0.6.0";
src = fetchFromGitHub {
owner = "sharkdp";
repo = pname;
rev = "v${version}";
sha256 = "00xxk1ipr3hndd717q52j7s2wfxis1p4glaa9lvp72gwwzmv5k9w";
sha256 = "0m928hy2q8byfpm55nziiz86gcnhdnw3zpj78d8wx0pp318zjbla";
};
postPatch = ''
substituteInPlace src/main.rs --replace /usr/share $out/share
'';
cargoSha256 = "10xddr5cccc5cmhn4kwi27h3krmgapd7bqcp4rhjlbhdhsw7qxkx";
cargoSha256 = "1l34i7qalid9mlcbpqhbb2bxgn2ylb2lwki4c0hf4kkq646ql0n1";
postInstall = ''
mkdir -p $out/share/${pname}
cp -rv config/* themes $out/share/${pname}
# Remove after https://github.com/NixOS/nixpkgs/pull/97000 lands into master
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
unset SDKROOT
'';
meta = with stdenv.lib; {