gnome-tour: 0.0.1 -> 3.38.0

* updateScript
* use rust vendor (there's actually no isuse with doing that)
* add libhandy
* Values from /etc/os-release are now used (https://gitlab.gnome.org/GNOME/gnome-tour/-/issues/10)

Signed-off-by: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
WORLDofPEACE 2020-09-20 14:40:34 -04:00 committed by Jan Tojnar
parent 37f72d1ad6
commit cdc3ce564d
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -3,7 +3,7 @@
, gettext , gettext
, meson , meson
, ninja , ninja
, fetchFromGitLab , fetchurl
, pkg-config , pkg-config
, gtk3 , gtk3
, glib , glib
@ -13,34 +13,26 @@
, wrapGAppsHook , wrapGAppsHook
, python3 , python3
, gnome3 , gnome3
, config , libhandy
, librsvg
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "gnome-tour"; pname = "gnome-tour";
version = "0.0.1"; version = "3.38.0";
# We don't use the uploaded tar.xz because it comes pre-vendored src = fetchurl {
src = fetchFromGitLab { url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
domain = "gitlab.gnome.org"; hash = "sha256-hV/C/Lyz6e9zhe3FRw4Sox5gMqThDP57wVCTgcekjng=";
owner = "GNOME";
repo = "gnome-tour";
rev = version;
sha256 = "0lbkspnlziq3z177071w3jpghmdwflzra1krdwchzmkfmrhy50ch";
}; };
cargoSha256 = "0k1wp9wswr57fv2d9bysxn97fchd4vz29n5r8gfyp0gcm8rclmij"; cargoVendorDir = "vendor";
mesonFlags = [
"-Ddistro_name=NixOS"
"-Ddistro_icon_name=nix-snowflake"
"-Ddistro_version=20.09"
];
nativeBuildInputs = [ nativeBuildInputs = [
appstream-glib appstream-glib
desktop-file-utils desktop-file-utils
gettext gettext
glib # glib-compile-resources
meson meson
ninja ninja
pkg-config pkg-config
@ -52,6 +44,8 @@ rustPlatform.buildRustPackage rec {
gdk-pixbuf gdk-pixbuf
glib glib
gtk3 gtk3
libhandy
librsvg
]; ];
# Don't use buildRustPackage phases, only use it for rust deps setup # Don't use buildRustPackage phases, only use it for rust deps setup
@ -65,11 +59,11 @@ rustPlatform.buildRustPackage rec {
patchShebangs build-aux/meson_post_install.py patchShebangs build-aux/meson_post_install.py
''; '';
# passthru = { passthru = {
# updateScript = gnome3.updateScript { updateScript = gnome3.updateScript {
# packageName = pname; packageName = pname;
# }; };
# }; };
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-tour"; homepage = "https://gitlab.gnome.org/GNOME/gnome-tour";