nixpkgs/pkgs/desktops/gnome/core/gnome-backgrounds/default.nix
Bobby Rong e21a272d8a gnome.gnome-backgrounds: 45.rc → 45.0
https://gitlab.gnome.org/GNOME/gnome-backgrounds/-/compare/45.rc...45.0

No changes.

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
2023-11-21 08:42:13 +01:00

44 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchurl
, meson
, ninja
, gnome
}:
stdenv.mkDerivation rec {
pname = "gnome-backgrounds";
version = "45.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-backgrounds/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "zuDmiPuuXvenXzNa2i0Qd54I68qURfFYbeMsWptt7i0=";
};
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";
attrPath = "gnome.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;
};
}