diff options
author | Will Dietz <w@wdtz.org> | 2018-12-03 08:15:57 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-12-18 09:39:14 -0600 |
commit | c2cde10f3086ff389b136636f812193532abfa62 (patch) | |
tree | 5af1736ae44212d3f9eb4a15617c27f916195f00 /pkgs/tools | |
parent | 066614a526a5c94ff48e8e4efb5b41192aa1d405 (diff) |
vivid: init at 0.4.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/vivid/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/vivid/default.nix b/pkgs/tools/misc/vivid/default.nix new file mode 100644 index 0000000000000..7b1abd80758de --- /dev/null +++ b/pkgs/tools/misc/vivid/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + name = "${pname}-${version}"; + pname = "vivid"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "sharkdp"; + repo = pname; + rev = "v${version}"; + sha256 = "13x0295v5blvv8dxhimbdjh81l7xl0vm6zni3qjd85psfn61371q"; + }; + + postPatch = '' + substituteInPlace src/main.rs --replace /usr/share $out/share + ''; + + cargoSha256 = "156wapa2ds7ij1jhrpa8mm6dicwq934qxl56sqw3bgz6pfa8fldz"; + + 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; + }; +} |