3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/core/gnome-backgrounds/default.nix
Jan Tojnar cae929fadd
Merge pull request #134509 from cwyc/gnome-backgrounds-stable-dir
gnome-backgrounds: stable image paths
2021-10-21 02:57:49 +02:00

30 lines
991 B
Nix

{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gnome, gettext }:
stdenv.mkDerivation rec {
pname = "gnome-backgrounds";
version = "41.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-backgrounds/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "HaGsDSYb7fD80shbSAvGVQXiPPUfEUMSbA03cX5pMUU=";
};
passthru = {
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 ];
meta = with lib; {
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
}