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
43
pkgs/data/misc/fedora-backgrounds/generic.nix
Normal file
43
pkgs/data/misc/fedora-backgrounds/generic.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, coreutils
|
||||
}:
|
||||
|
||||
{ version
|
||||
, src
|
||||
, patches ? [ ]
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
inherit patches src version;
|
||||
|
||||
pname = "fedora${lib.versions.major version}-backgrounds";
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
postPatch = ''
|
||||
for f in default/Makefile extras/Makefile; do
|
||||
substituteInPlace $f \
|
||||
--replace "usr/share" "share" \
|
||||
--replace "/usr/bin/" "" \
|
||||
--replace "/bin/" ""
|
||||
done
|
||||
|
||||
for f in $(find . -name '*.xml'); do
|
||||
substituteInPlace $f \
|
||||
--replace "/usr/share" "$out/share"
|
||||
done;
|
||||
'';
|
||||
|
||||
installFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fedoradesign/backgrounds";
|
||||
description = "A set of default and supplemental wallpapers for Fedora";
|
||||
license = licenses.cc-by-sa-40;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue