3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/core/gnome-tour/default.nix

76 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
2021-02-28 15:09:56 +00:00
, stdenv
2020-02-16 10:00:23 +00:00
, rustPlatform
, gettext
, meson
, ninja
, fetchurl
2020-02-16 10:00:23 +00:00
, pkg-config
, gtk3
, glib
, gdk-pixbuf
, desktop-file-utils
, appstream-glib
, wrapGAppsHook
, python3
, gnome
, libhandy
, librsvg
2021-02-28 15:09:56 +00:00
, rustc
, cargo
2020-02-16 10:00:23 +00:00
}:
2021-02-28 15:09:56 +00:00
stdenv.mkDerivation rec {
2020-02-16 10:00:23 +00:00
pname = "gnome-tour";
2021-03-21 05:15:47 +00:00
version = "40.0";
2020-02-16 10:00:23 +00:00
src = fetchurl {
2021-03-21 05:15:47 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
hash = "sha256-cGMiOGmgdHJ0FL7H23ONhQYhbuhMz8O8p9rFLkmMG/k=";
2020-02-16 10:00:23 +00:00
};
cargoVendorDir = "vendor";
2020-02-16 10:00:23 +00:00
nativeBuildInputs = [
appstream-glib
2021-02-28 15:09:56 +00:00
cargo
2020-02-16 10:00:23 +00:00
desktop-file-utils
gettext
glib # glib-compile-resources
2020-02-16 10:00:23 +00:00
meson
ninja
pkg-config
python3
2021-02-28 15:09:56 +00:00
rustPlatform.cargoSetupHook
rustc
2020-02-16 10:00:23 +00:00
wrapGAppsHook
];
buildInputs = [
gdk-pixbuf
glib
gtk3
libhandy
librsvg
2020-02-16 10:00:23 +00:00
];
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
};
};
2020-02-16 10:00:23 +00:00
meta = with lib; {
2020-02-16 10:00:23 +00:00
homepage = "https://gitlab.gnome.org/GNOME/gnome-tour";
description = "GNOME Greeter & Tour";
maintainers = teams.gnome.members;
2020-02-16 10:00:23 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}