uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
28
pkgs/tools/misc/dynamic-colors/default.nix
Normal file
28
pkgs/tools/misc/dynamic-colors/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dynamic-colors";
|
||||
version = "0.2.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "peterhoeg";
|
||||
repo = "dynamic-colors";
|
||||
rev = "v${version}";
|
||||
sha256 = "0i63570z9aqbxa8ixh4ayb3akgjdnlqyl2sbf9d7x8f1pxhk5kd5";
|
||||
};
|
||||
|
||||
PREFIX = placeholder "out";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace bin/dynamic-colors \
|
||||
--replace /usr/share/dynamic-colors $out/share/dynamic-colors
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Change terminal colors on the fly";
|
||||
homepage = "https://github.com/peterhoeg/dynamic-colors";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue