2019-11-27 18:53:47 +00:00
|
|
|
{ stdenv
|
|
|
|
, pythonPackages
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
}:
|
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2019-03-22 19:29:50 +00:00
|
|
|
pname = "bleachbit";
|
2020-02-07 03:01:27 +00:00
|
|
|
version = "3.2.0";
|
2015-07-10 08:29:51 +00:00
|
|
|
|
2019-03-25 02:54:13 +00:00
|
|
|
format = "other";
|
|
|
|
|
2015-07-10 08:29:51 +00:00
|
|
|
src = fetchurl {
|
2019-03-22 19:29:50 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
|
2020-02-07 03:01:27 +00:00
|
|
|
sha256 = "1sszpn7ifiry0wwmkzdppzh61zvgrfypm9g7wk6q1ya20qhb5b51";
|
2015-07-10 08:29:51 +00:00
|
|
|
};
|
|
|
|
|
2019-11-27 18:53:47 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
chardet
|
|
|
|
pygobject3
|
|
|
|
requests
|
|
|
|
scandir
|
|
|
|
];
|
2015-07-10 08:29:51 +00:00
|
|
|
|
2019-03-22 19:29:50 +00:00
|
|
|
# Patch the many hardcoded uses of /usr/share/ and /usr/bin
|
|
|
|
postPatch = ''
|
|
|
|
find -type f -exec sed -i -e 's@/usr/share@${placeholder "out"}/share@g' {} \;
|
|
|
|
find -type f -exec sed -i -e 's@/usr/bin@${placeholder "out"}/bin@g' {} \;
|
|
|
|
'';
|
|
|
|
|
2019-03-25 02:54:13 +00:00
|
|
|
dontBuild = true;
|
2015-07-10 08:29:51 +00:00
|
|
|
|
2019-11-27 18:53:47 +00:00
|
|
|
installFlags = [
|
|
|
|
"prefix=${placeholder "out"}"
|
|
|
|
];
|
2019-03-25 02:54:13 +00:00
|
|
|
|
2019-11-27 18:53:47 +00:00
|
|
|
strictDeps = false;
|
2015-07-10 08:29:51 +00:00
|
|
|
|
2019-11-27 18:53:47 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://bleachbit.sourceforge.net;
|
2015-07-10 08:29:51 +00:00
|
|
|
description = "A program to clean your computer";
|
|
|
|
longDescription = "BleachBit helps you easily clean your computer to free space and maintain privacy.";
|
2019-11-27 18:53:47 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ leonardoce ];
|
2015-07-10 08:29:51 +00:00
|
|
|
};
|
|
|
|
}
|