mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
gnome-backgrounds: stable image paths
This patch makes the backgrounds database point to stable paths in /run/current-system/sw that don't decay whenever this package's hash changes.
This commit is contained in:
parent
f01615c464
commit
35279a22be
@ -13,6 +13,13 @@ stdenv.mkDerivation rec {
|
|||||||
updateScript = gnome.updateScript { packageName = "gnome-backgrounds"; attrPath = "gnome.gnome-backgrounds"; };
|
updateScript = gnome.updateScript { packageName = "gnome-backgrounds"; attrPath = "gnome.gnome-backgrounds"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Makes the database point to stable paths in /run/current-system/sw/share, which don't decay whenever this package's hash changes.
|
||||||
|
# This assumes a nixos + gnome system, where this package is installed in environment.systemPackages,
|
||||||
|
# and /share outputs are included in environment.pathsToLink.
|
||||||
|
./stable-dir.patch
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja pkg-config gettext ];
|
nativeBuildInputs = [ meson ninja pkg-config gettext ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
diff --git a/backgrounds/meson.build b/backgrounds/meson.build
|
||||||
|
index 2175a16..cf521df 100644
|
||||||
|
--- a/backgrounds/meson.build
|
||||||
|
+++ b/backgrounds/meson.build
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
dataconf = configuration_data()
|
||||||
|
-dataconf.set('BACKGROUNDDIR', backgrounddir)
|
||||||
|
+dataconf.set('BACKGROUNDDIR', '/run/current-system/sw/share/backgrounds/gnome')
|
||||||
|
dataconf.set('datadir', datadir)
|
Loading…
Reference in New Issue
Block a user