nixpkgs/pkgs/by-name/gn/gnome-tour/package.nix
Bobby Rong 1c590a0b12
gnome-tour: 46.0 → 47.0
https://gitlab.gnome.org/GNOME/gnome-tour/-/compare/46.0...47.0

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
2024-10-14 20:54:16 +08:00

76 lines
1.4 KiB
Nix

{
lib,
stdenv,
rustPlatform,
gettext,
meson,
ninja,
fetchurl,
pkg-config,
gtk4,
glib,
desktop-file-utils,
appstream-glib,
wrapGAppsHook4,
python3,
gnome,
libadwaita,
librsvg,
rustc,
cargo,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gnome-tour";
version = "47.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-tour/${lib.versions.major finalAttrs.version}/gnome-tour-${finalAttrs.version}.tar.xz";
hash = "sha256-cvqvieAGyJMkp+FXIEaRaWGziuujj21tTMQePT1GaUQ=";
};
cargoVendorDir = "vendor";
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
appstream-glib
cargo
desktop-file-utils
gettext
glib # glib-compile-resources
meson
ninja
pkg-config
python3
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
libadwaita
librsvg
];
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-tour";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-tour";
changelog = "https://gitlab.gnome.org/GNOME/gnome-tour/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
description = "GNOME Greeter & Tour";
mainProgram = "gnome-tour";
maintainers = teams.gnome.members;
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
})