diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-11-27 13:53:47 -0500 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-12-10 22:41:25 -0500 |
commit | 5f4b980674516b1e5bbc9937c09bc65564a76db0 (patch) | |
tree | aa1ad560b342fba72de533b8fb43a15ef17fbb40 /pkgs/applications/misc | |
parent | 249a4896316a33f38691fb9be158b6c319a8fd14 (diff) |
bleachbit: use gtk3
bleachbit is aiming to support python3 around January of 2020 [0]. [0]: https://github.com/bleachbit/bleachbit/issues/163
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/bleachbit/default.nix | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/pkgs/applications/misc/bleachbit/default.nix b/pkgs/applications/misc/bleachbit/default.nix index 01eb69baadd8b..225a5c5fc3763 100644 --- a/pkgs/applications/misc/bleachbit/default.nix +++ b/pkgs/applications/misc/bleachbit/default.nix @@ -1,4 +1,14 @@ -{ stdenv, pythonPackages, fetchurl, gettext }: +{ stdenv +, pythonPackages +, fetchurl +, gettext +, gobject-introspection +, wrapGAppsHook +, glib +, gtk3 +, libnotify +}: + pythonPackages.buildPythonApplication rec { pname = "bleachbit"; version = "3.0"; @@ -10,7 +20,24 @@ pythonPackages.buildPythonApplication rec { sha256 = "18ns9hms671b4l0189m1m2agprkydnpvyky9q2f5hxf35i9cn67d"; }; - nativeBuildInputs = [ gettext ]; + nativeBuildInputs = [ + gettext + gobject-introspection + wrapGAppsHook + ]; + + buildInputs = [ + glib + gtk3 + libnotify + ]; + + propagatedBuildInputs = with pythonPackages; [ + chardet + pygobject3 + requests + scandir + ]; # Patch the many hardcoded uses of /usr/share/ and /usr/bin postPatch = '' @@ -20,15 +47,17 @@ pythonPackages.buildPythonApplication rec { dontBuild = true; - installFlags = [ "prefix=${placeholder "out"}" ]; + installFlags = [ + "prefix=${placeholder "out"}" + ]; - propagatedBuildInputs = with pythonPackages; [ pygtk ]; + strictDeps = false; - meta = { + meta = with stdenv.lib; { homepage = http://bleachbit.sourceforge.net; description = "A program to clean your computer"; longDescription = "BleachBit helps you easily clean your computer to free space and maintain privacy."; - license = stdenv.lib.licenses.gpl3; - maintainers = with stdenv.lib.maintainers; [ leonardoce ]; + license = licenses.gpl3; + maintainers = with maintainers; [ leonardoce ]; }; } |