nixpkgs/pkgs/tools/misc/dynamic-colors/default.nix

29 lines
732 B
Nix
Raw Normal View History

2016-03-17 08:35:23 +00:00
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
2019-08-21 05:30:05 +00:00
pname = "dynamic-colors";
version = "0.2.2.2";
src = fetchFromGitHub {
2017-03-30 03:14:42 +00:00
owner = "peterhoeg";
repo = "dynamic-colors";
rev = "v${version}";
2019-08-21 05:30:05 +00:00
sha256 = "0i63570z9aqbxa8ixh4ayb3akgjdnlqyl2sbf9d7x8f1pxhk5kd5";
};
2019-08-21 05:30:05 +00:00
PREFIX = placeholder "out";
2019-08-21 05:30:05 +00:00
postPatch = ''
substituteInPlace bin/dynamic-colors \
2017-03-30 03:14:42 +00:00
--replace /usr/share/dynamic-colors $out/share/dynamic-colors
'';
2017-03-30 03:14:42 +00:00
meta = with stdenv.lib; {
description = "Change terminal colors on the fly";
2019-08-21 05:30:05 +00:00
homepage = "https://github.com/peterhoeg/dynamic-colors";
2017-03-30 03:14:42 +00:00
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
}