2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
gnome,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-backgrounds";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "46.0";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-backgrounds/${lib.versions.major version}/gnome-backgrounds-${version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-Td06xDmkoGeHaAWSG7dfTTyLhaIY1Hwnbd3eiShEPC4=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2024-09-19 14:19:46 +00:00
|
|
|
updateScript = gnome.updateScript { packageName = "gnome-backgrounds"; };
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Default wallpaper set for GNOME";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-backgrounds";
|
|
|
|
license = licenses.cc-by-sa-30;
|
2021-05-20 23:08:51 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|