2019-03-22 20:29:50 +01:00
|
|
|
{ stdenv, pythonPackages, fetchurl, gettext }:
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2019-03-22 20:29:50 +01:00
|
|
|
pname = "bleachbit";
|
|
|
|
version = "2.2";
|
2015-07-10 10:29:51 +02:00
|
|
|
|
2019-03-25 03:54:13 +01:00
|
|
|
format = "other";
|
|
|
|
|
2015-07-10 10:29:51 +02:00
|
|
|
src = fetchurl {
|
2019-03-22 20:29:50 +01:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1yj9bc3k6s1aib7znb79h5rybfv691zz4szxkwf9fm9nr0dws603";
|
2015-07-10 10:29:51 +02:00
|
|
|
};
|
|
|
|
|
2019-03-22 20:29:50 +01:00
|
|
|
nativeBuildInputs = [ gettext ];
|
2015-07-10 10:29:51 +02:00
|
|
|
|
2019-03-22 20:29:50 +01: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 03:54:13 +01:00
|
|
|
dontBuild = true;
|
2015-07-10 10:29:51 +02:00
|
|
|
|
2019-03-25 03:54:13 +01:00
|
|
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
|
2016-10-14 00:03:12 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygtk ];
|
2015-07-10 10:29:51 +02:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://bleachbit.sourceforge.net;
|
2015-07-10 10:29:51 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|