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
36
pkgs/data/themes/gtk-theme-framework/default.nix
Normal file
36
pkgs/data/themes/gtk-theme-framework/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, fetchFromGitHub, theme, lib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtk-theme-framework";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jaxwilko";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1z5s5rsgiypanf2z0avaisbflnvwrc8aiy5qskrsvbbaja63jy3s";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace main.sh \
|
||||
--replace "#!/usr/bin/env bash" "#!/bin/sh"
|
||||
|
||||
substituteInPlace scripts/install.sh \
|
||||
--replace "#!/usr/bin/env bash" "#!/bin/sh"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/themes
|
||||
./main.sh -i -t ${theme} -d $out/share/themes
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jaxwilko/gtk-theme-framework";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ flexagoon ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue