2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-07-18 16:06:22 +00:00
|
|
|
, python3Packages
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
2021-04-26 19:14:03 +00:00
|
|
|
, scandir ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bleachbit";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "4.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1dn3h6lr9ldbfpvgq9sdlk972sxhwalgj2f377qbqibm3yfxzpil";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2020-04-24 23:36:52 +00:00
|
|
|
chardet
|
|
|
|
pygobject3
|
|
|
|
requests
|
|
|
|
scandir
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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"}"
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
# prevent double wrapping from wrapGApps and wrapPythonProgram
|
|
|
|
dontWrapGApps = true;
|
|
|
|
makeWrapperArgs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
"\${gappsWrapperArgs[@]}"
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
strictDeps = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ leonardoce ];
|
|
|
|
};
|
|
|
|
}
|