depot/pkgs/by-name/gn/gnome-backgrounds/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

43 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchurl,
meson,
ninja,
gnome,
}:
stdenv.mkDerivation rec {
pname = "gnome-backgrounds";
version = "47.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-backgrounds/${lib.versions.major version}/gnome-backgrounds-${version}.tar.xz";
hash = "sha256-h0pKOcQmFzb2qFRyKDNAC2EkQcRoGqWYLZCxWryckf0=";
};
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
];
passthru = {
updateScript = gnome.updateScript { packageName = "gnome-backgrounds"; };
};
meta = with lib; {
description = "Default wallpaper set for GNOME";
homepage = "https://gitlab.gnome.org/GNOME/gnome-backgrounds";
changelog = "https://gitlab.gnome.org/GNOME/gnome-backgrounds/-/blob/${version}/NEWS?ref_type=tags";
license = licenses.cc-by-sa-30;
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
}