2015-07-10 11:29:51 +03:00
|
|
|
{ stdenv, pythonPackages, fetchurl }:
|
2016-02-19 15:12:11 +03:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-07-10 11:29:51 +03:00
|
|
|
name = "bleachbit-${version}";
|
2018-03-08 06:16:54 +03:00
|
|
|
version = "2.0";
|
2015-07-10 11:29:51 +03:00
|
|
|
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-07-03 17:00:04 +03:00
|
|
|
url = "mirror://sourceforge/bleachbit/${name}.tar.bz2";
|
2018-03-08 06:16:54 +03:00
|
|
|
sha256 = "0ps98zx4n13q92bq7ykqi6hj3i7brdqgm87i9gk6ibvljp1vxdz9";
|
2015-07-10 11:29:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pythonPackages.wrapPython ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bleachbit.py $out/bin/bleachbit
|
|
|
|
chmod +x $out/bin/bleachbit
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/bleachbit --replace "#!/usr/bin/env python" "#!${pythonPackages.python.interpreter}"
|
|
|
|
'';
|
|
|
|
|
2016-10-14 01:03:12 +03:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygtk ];
|
2015-07-10 11:29:51 +03:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = http://bleachbit.sourceforge.net;
|
2015-07-10 11:29:51 +03: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 ];
|
|
|
|
};
|
|
|
|
}
|