nixpkgs/pkgs/tools/misc/vivid/default.nix

29 lines
827 B
Nix
Raw Normal View History

2018-12-03 14:15:57 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "vivid";
2020-09-27 02:54:11 +00:00
version = "0.6.0";
2018-12-03 14:15:57 +00:00
src = fetchFromGitHub {
owner = "sharkdp";
repo = pname;
rev = "v${version}";
2020-09-27 02:54:11 +00:00
sha256 = "0m928hy2q8byfpm55nziiz86gcnhdnw3zpj78d8wx0pp318zjbla";
2018-12-03 14:15:57 +00:00
};
2020-09-27 02:54:11 +00:00
cargoSha256 = "10xddr5cccc5cmhn4kwi27h3krmgapd7bqcp4rhjlbhdhsw7qxkx";
2018-12-03 14:15:57 +00:00
2020-09-27 02:54:11 +00:00
# Remove after https://github.com/NixOS/nixpkgs/pull/97000 lands into master
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
unset SDKROOT
2018-12-03 14:15:57 +00:00
'';
meta = with stdenv.lib; {
description = "A generator for LS_COLORS with support for multiple color themes";
homepage = "https://github.com/sharkdp/vivid";
2018-12-03 14:15:57 +00:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ maintainers.dtzWill ];
platforms = platforms.unix;
};
}