gnome3.gnome-tweaks: use buildPythonApplication

This commit is contained in:
Matt Votava 2020-11-28 08:40:48 -08:00
parent 037d1121a4
commit 51b3765689
1 changed files with 48 additions and 21 deletions

View File

@ -1,42 +1,69 @@
{ stdenv, meson, ninja, gettext, fetchurl { lib
, pkgconfig, gtk3, glib, libsoup, gsettings-desktop-schemas , meson
, itstool, libxml2, python3Packages, libhandy_0 , ninja
, gnome3, gdk-pixbuf, libnotify, gobject-introspection, wrapGAppsHook }: , fetchurl
, gdk-pixbuf
, gettext
, glib
, gnome3
, gobject-introspection
, gsettings-desktop-schemas
, gtk3
, itstool
, libhandy_0
, libnotify
, libsoup
, libxml2
, pkg-config
, python3Packages
, wrapGAppsHook }:
let python3Packages.buildPythonApplication rec {
pname = "gnome-tweaks"; pname = "gnome-tweaks";
version = "3.34.0"; version = "3.34.0";
in stdenv.mkDerivation rec { format = "other";
name = "${pname}-${version}"; strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0l2j42ba7v866iknygamnkiq7igh0fjvq92r93cslvvfnkx2ccq0"; sha256 = "0l2j42ba7v866iknygamnkiq7igh0fjvq92r93cslvvfnkx2ccq0";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
meson ninja pkgconfig gettext itstool libxml2 wrapGAppsHook python3Packages.python gettext
gobject-introspection
itstool
libxml2
meson
ninja
pkg-config
wrapGAppsHook
]; ];
buildInputs = [ buildInputs = [
gtk3 glib gsettings-desktop-schemas gdk-pixbuf
gdk-pixbuf gnome3.adwaita-icon-theme glib
libnotify gnome3.gnome-shell python3Packages.pygobject3 gnome3.gnome-desktop
libsoup gnome3.gnome-settings-daemon gnome3.nautilus gnome3.gnome-settings-daemon
gnome3.mutter gnome3.gnome-desktop gobject-introspection gnome3.gnome-shell
gnome3.nautilus libhandy_0
# Makes it possible to select user themes through the `user-theme` extension # Makes it possible to select user themes through the `user-theme` extension
gnome3.gnome-shell-extensions gnome3.gnome-shell-extensions
gnome3.mutter
gsettings-desktop-schemas
gtk3
libhandy_0
libnotify
libsoup
];
propagatedBuildInputs = with python3Packages; [
pygobject3
]; ];
postPatch = '' postPatch = ''
patchShebangs meson-postinstall.py patchShebangs meson-postinstall.py
''; '';
preFixup = ''
gappsWrapperArgs+=(
--prefix PYTHONPATH : "$out/${python3Packages.python.sitePackages}:$PYTHONPATH")
'';
passthru = { passthru = {
updateScript = gnome3.updateScript { updateScript = gnome3.updateScript {
packageName = pname; packageName = pname;
@ -44,7 +71,7 @@ in stdenv.mkDerivation rec {
}; };
}; };
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://wiki.gnome.org/action/show/Apps/GnomeTweakTool"; homepage = "https://wiki.gnome.org/action/show/Apps/GnomeTweakTool";
description = "A tool to customize advanced GNOME 3 options"; description = "A tool to customize advanced GNOME 3 options";
maintainers = teams.gnome.members; maintainers = teams.gnome.members;