depot/third_party/nixpkgs/pkgs/by-name/gn/gnome-backgrounds/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

42 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchurl,
meson,
ninja,
gnome,
}:
stdenv.mkDerivation rec {
pname = "gnome-backgrounds";
version = "46.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-backgrounds/${lib.versions.major version}/gnome-backgrounds-${version}.tar.xz";
hash = "sha256-Td06xDmkoGeHaAWSG7dfTTyLhaIY1Hwnbd3eiShEPC4=";
};
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";
license = licenses.cc-by-sa-30;
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
}