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
34
pkgs/data/misc/fedora-backgrounds/default.nix
Normal file
34
pkgs/data/misc/fedora-backgrounds/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ callPackage, lib, fetchurl }:
|
||||
|
||||
let
|
||||
fedoraBackground = callPackage ./generic.nix { };
|
||||
in {
|
||||
f32 = fedoraBackground rec {
|
||||
version = "32.2.2";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/fedoradesign/backgrounds/releases/download/v${version}/f${lib.versions.major version}-backgrounds-${version}.tar.xz";
|
||||
hash = "sha256-1F75aae7Jj7M2IPn/vWKcUF+O5mZ0Yey7hWuFj/4Fhg=";
|
||||
};
|
||||
};
|
||||
|
||||
f33 = fedoraBackground rec {
|
||||
version = "33.0.7";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/fedoradesign/backgrounds/releases/download/v${version}/f${lib.versions.major version}-backgrounds-${version}.tar.xz";
|
||||
hash = "sha256-lAn5diEYebCo2ZJCOn9rD87rOasUU0qnSOr0EnZKW4o=";
|
||||
};
|
||||
# Fix broken symlinks in the Xfce background directory.
|
||||
patches = [ ./f33-fix-xfce-path.patch ];
|
||||
};
|
||||
|
||||
f34 = fedoraBackground rec {
|
||||
version = "34.0.1";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/fedoradesign/backgrounds/releases/download/v${version}/f${lib.versions.major version}-backgrounds-${version}.tar.xz";
|
||||
hash = "sha256-0gotgQ4N0yE8WZbsu7B3jmUIZrycbqjEMxZl01JcJj4=";
|
||||
};
|
||||
# Fix broken symlinks in the Xfce background directory.
|
||||
patches = [ ./f34-fix-xfce-path.patch ];
|
||||
};
|
||||
|
||||
}
|
||||
15
pkgs/data/misc/fedora-backgrounds/f33-fix-xfce-path.patch
Normal file
15
pkgs/data/misc/fedora-backgrounds/f33-fix-xfce-path.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/default/Makefile b/default/Makefile
|
||||
index ec8095a..9391f8f 100644
|
||||
--- a/default/Makefile
|
||||
+++ b/default/Makefile
|
||||
@@ -48,8 +48,8 @@ install:
|
||||
|
||||
#~ XFCE background
|
||||
$(MKDIR) $(XFCE_BG_DIR)
|
||||
- $(LN_S) ../default/$(WP_NAME)-02-day.png \
|
||||
+ $(LN_S) ../../backgrounds/$(WP_NAME)/default/$(WP_NAME)-02-day.png \
|
||||
$(XFCE_BG_DIR)/$(WP_NAME).png
|
||||
for tod in 01-dawn 03-dusk 04-night; do \
|
||||
- $(LN_S) ../default/$(WP_NAME)-$${tod}.png $(XFCE_BG_DIR)/$(WP_NAME)-$${tod}.png; \
|
||||
+ $(LN_S) ../../backgrounds/$(WP_NAME)/default/$(WP_NAME)-$${tod}.png $(XFCE_BG_DIR)/$(WP_NAME)-$${tod}.png; \
|
||||
done;
|
||||
13
pkgs/data/misc/fedora-backgrounds/f34-fix-xfce-path.patch
Normal file
13
pkgs/data/misc/fedora-backgrounds/f34-fix-xfce-path.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/default/Makefile b/default/Makefile
|
||||
index 172d5d9..540a1c0 100644
|
||||
--- a/default/Makefile
|
||||
+++ b/default/Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
WP_NAME=f34
|
||||
WP_BIGNAME=F34
|
||||
WP_DIR=$(DESTDIR)/usr/share/backgrounds/$(WP_NAME)
|
||||
-WP_DIR_LN=/usr/share/backgrounds/$(WP_NAME)
|
||||
+WP_DIR_LN=$(DESTDIR)/usr/share/backgrounds/$(WP_NAME)
|
||||
GNOME_BG_DIR=$(DESTDIR)/usr/share/gnome-background-properties
|
||||
KDE_BG_DIR=$(DESTDIR)/usr/share/wallpapers
|
||||
MATE_BG_DIR=$(DESTDIR)/usr/share/mate-background-properties
|
||||
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