1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 16:11:58 +00:00
nixpkgs/pkgs/applications/misc/bleachbit/default.nix
Will Dietz 34845f2f67 bleachbit: use format="other", simplify.
Patch by @worldbypeace, during PR review.  Thanks!
2019-03-24 21:54:13 -05:00

39 lines
1.1 KiB
Nix

{ stdenv, pythonPackages, fetchurl, gettext }:
pythonPackages.buildPythonApplication rec {
pname = "bleachbit";
version = "2.2";
format = "other";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
sha256 = "1yj9bc3k6s1aib7znb79h5rybfv691zz4szxkwf9fm9nr0dws603";
};
nativeBuildInputs = [ gettext ];
# 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' {} \;
'';
dontBuild = true;
installFlags = [ "prefix=${placeholder "out"}" ];
doCheck = true;
checkTarget = "tests";
propagatedBuildInputs = with pythonPackages; [ pygtk ];
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 ];
};
}