nixpkgs/pkgs/applications/misc/bleachbit/default.nix

35 lines
1,008 B
Nix
Raw Normal View History

2015-07-10 04:29:51 -04:00
{ stdenv, pythonPackages, fetchurl }:
pythonPackages.buildPythonApplication rec {
2015-07-10 04:29:51 -04:00
name = "bleachbit-${version}";
2016-07-03 10:00:04 -04:00
version = "1.12";
2015-07-10 04:29:51 -04:00
namePrefix = "";
src = fetchurl {
2016-07-03 10:00:04 -04:00
url = "mirror://sourceforge/bleachbit/${name}.tar.bz2";
sha256 = "1x58n429q1c77nfpf2g3vyh6yq8wha69zfzmxf1rvjvcvvmqs62m";
2015-07-10 04:29:51 -04: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-13 18:03:12 -04:00
propagatedBuildInputs = with pythonPackages; [ pygtk ];
2015-07-10 04:29:51 -04:00
meta = {
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 ];
};
}