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

64 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
, pythonPackages
, fetchurl
, gettext
, gobject-introspection
, wrapGAppsHook
, glib
, gtk3
, libnotify
}:
pythonPackages.buildPythonApplication rec {
pname = "bleachbit";
2019-11-01 17:16:51 +01:00
version = "3.0";
2015-07-10 10:29:51 +02:00
format = "other";
2015-07-10 10:29:51 +02:00
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
2019-11-01 17:16:51 +01:00
sha256 = "18ns9hms671b4l0189m1m2agprkydnpvyky9q2f5hxf35i9cn67d";
2015-07-10 10:29:51 +02:00
};
nativeBuildInputs = [
gettext
gobject-introspection
wrapGAppsHook
];
buildInputs = [
glib
gtk3
libnotify
];
propagatedBuildInputs = with pythonPackages; [
chardet
pygobject3
requests
scandir
];
2015-07-10 10:29:51 +02: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' {} \;
'';
dontBuild = true;
2015-07-10 10:29:51 +02:00
installFlags = [
"prefix=${placeholder "out"}"
];
strictDeps = false;
2015-07-10 10:29:51 +02:00
meta = with stdenv.lib; {
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 = licenses.gpl3;
maintainers = with maintainers; [ leonardoce ];
2015-07-10 10:29:51 +02:00
};
}