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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
2020-07-08 00:09:49 +03:00
, python3Packages
, fetchurl
, gettext
, gobject-introspection
, wrapGAppsHook3
, glib
, gtk3
, libnotify
}:
2020-07-08 00:09:49 +03:00
python3Packages.buildPythonApplication rec {
pname = "bleachbit";
2023-12-14 07:50:58 +03:00
version = "4.6.0";
2015-07-10 11:29:51 +03:00
format = "other";
2015-07-10 11:29:51 +03:00
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
2023-12-14 07:50:58 +03:00
sha256 = "sha256-UwUphuUeXFy71I+tmKnRH858dPrA2+xDxnG9h26a+kE=";
2015-07-10 11:29:51 +03:00
};
nativeBuildInputs = [
gettext
gobject-introspection
wrapGAppsHook3
];
buildInputs = [
glib
gtk3
libnotify
];
2020-07-08 00:09:49 +03:00
propagatedBuildInputs = with python3Packages; [
chardet
pygobject3
requests
];
2015-07-10 11:29:51 +03: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' {} \;
2021-09-07 11:56:41 +03:00
find -type f -exec sed -i -e 's@${placeholder "out"}/bin/python3@${python3Packages.python}/bin/python3@' {} \;
'';
dontBuild = true;
2015-07-10 11:29:51 +03:00
installFlags = [
"prefix=${placeholder "out"}"
];
2021-09-07 11:56:41 +03:00
# Prevent double wrapping from wrapGApps and wrapPythonProgram
2020-07-08 00:09:49 +03:00
dontWrapGApps = true;
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
2020-07-08 00:09:49 +03:00
];
strictDeps = false;
2015-07-10 11:29:51 +03:00
meta = with lib; {
homepage = "http://bleachbit.sourceforge.net";
description = "Program to clean your computer";
2015-07-10 11:29:51 +03:00
longDescription = "BleachBit helps you easily clean your computer to free space and maintain privacy.";
license = licenses.gpl3;
2021-09-07 11:56:41 +03:00
maintainers = with maintainers; [ leonardoce mbprtpmnr ];
2023-08-04 22:10:05 +03:00
mainProgram = "bleachbit";
2015-07-10 11:29:51 +03:00
};
}