fedora-backgrounds.f33: init at 33.0.7
This commit is contained in:
parent
7c8451d51c
commit
a0bbcb7632
23
pkgs/data/misc/fedora-backgrounds/default.nix
Normal file
23
pkgs/data/misc/fedora-backgrounds/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
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;
|
42
pkgs/data/misc/fedora-backgrounds/generic.nix
Normal file
42
pkgs/data/misc/fedora-backgrounds/generic.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ stdenv
|
||||
, coreutils
|
||||
}:
|
||||
|
||||
{ version
|
||||
, src
|
||||
, patches ? [ ]
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit patches src version;
|
||||
|
||||
pname = "fedora${stdenv.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 stdenv.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; [ danieldk ];
|
||||
};
|
||||
}
|
@ -1056,6 +1056,8 @@ in
|
||||
|
||||
container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { };
|
||||
|
||||
fedora-backgrounds = callPackage ../data/misc/fedora-backgrounds { };
|
||||
|
||||
fedora-coreos-config-transpiler = callPackage ../development/tools/fedora-coreos-config-transpiler { };
|
||||
|
||||
ccextractor = callPackage ../applications/video/ccextractor { };
|
||||
|
Loading…
Reference in New Issue
Block a user