git.iko.soy/typeable/nixpkgs
on master help sign in
bleachbit: use gtk3

bleachbit is aiming to support python3 around January of 2020 [0]. [0]: https://github.com/bleachbit/bleachbit/issues/163

commit5f4b980674516b1e5bbc9937c09bc65564a76db0 authorworldofpeace <worldofpeace@protonmail.ch> dateWed 27 Nov 2019, 13:53 (7 years ago) parent249a489
1 file changed+36−7
pkgs/applications/misc/bleachbit/default.nix+36−7
pkgs/applications/misc/bleachbit/default.nix+36−7
@@ -1,4 +1,14 @@
1−{ stdenv, pythonPackages, fetchurl, gettext }:
1+{ stdenv
2+, pythonPackages
3+, fetchurl
4+, gettext
5+, gobject-introspection
6+, wrapGAppsHook
7+, glib
8+, gtk3
9+, libnotify
10+}:
11+
212pythonPackages.buildPythonApplication rec {
313 pname = "bleachbit";
414 version = "3.0";
@@ -10,7 +20,24 @@ pythonPackages.buildPythonApplication rec {
1020 sha256 = "18ns9hms671b4l0189m1m2agprkydnpvyky9q2f5hxf35i9cn67d";
1121 };
1222
13− nativeBuildInputs = [ gettext ];
23+ nativeBuildInputs = [
24+ gettext
25+ gobject-introspection
26+ wrapGAppsHook
27+ ];
28+
29+ buildInputs = [
30+ glib
31+ gtk3
32+ libnotify
33+ ];
34+
35+ propagatedBuildInputs = with pythonPackages; [
36+ chardet
37+ pygobject3
38+ requests
39+ scandir
40+ ];
1441
1542 # Patch the many hardcoded uses of /usr/share/ and /usr/bin
1643 postPatch = ''
@@ -20,15 +47,17 @@ pythonPackages.buildPythonApplication rec {
2047
2148 dontBuild = true;
2249
23− installFlags = [ "prefix=${placeholder "out"}" ];
50+ installFlags = [
51+ "prefix=${placeholder "out"}"
52+ ];
2453
25− propagatedBuildInputs = with pythonPackages; [ pygtk ];
54+ strictDeps = false;
2655
27− meta = {
56+ meta = with stdenv.lib; {
2857 homepage = http://bleachbit.sourceforge.net;
2958 description = "A program to clean your computer";
3059 longDescription = "BleachBit helps you easily clean your computer to free space and maintain privacy.";
31− license = stdenv.lib.licenses.gpl3;
32− maintainers = with stdenv.lib.maintainers; [ leonardoce ];
60+ license = licenses.gpl3;
61+ maintainers = with maintainers; [ leonardoce ];
3362 };
3463}