3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/bleachbit/default.nix

70 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
2020-07-07 22:09:49 +01:00
, python3Packages
, fetchurl
, gettext
, gobject-introspection
, wrapGAppsHook
, glib
, gtk3
, libnotify
}:
2020-07-07 22:09:49 +01:00
python3Packages.buildPythonApplication rec {
pname = "bleachbit";
2020-07-07 22:09:49 +01:00
version = "4.0.0";
2015-07-10 09:29:51 +01:00
format = "other";
2015-07-10 09:29:51 +01:00
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
2020-07-07 22:09:49 +01:00
sha256 = "1dn3h6lr9ldbfpvgq9sdlk972sxhwalgj2f377qbqibm3yfxzpil";
2015-07-10 09:29:51 +01:00
};
nativeBuildInputs = [
gettext
gobject-introspection
wrapGAppsHook
];
buildInputs = [
glib
gtk3
libnotify
];
2020-07-07 22:09:49 +01:00
propagatedBuildInputs = with python3Packages; [
chardet
pygobject3
requests
scandir
];
2015-07-10 09:29:51 +01: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 09:29:51 +01:00
installFlags = [
"prefix=${placeholder "out"}"
];
2020-07-07 22:09:49 +01:00
# prevent double wrapping from wrapGApps and wrapPythonProgram
dontWrapGApps = true;
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
2020-07-07 22:09:49 +01:00
];
strictDeps = false;
2015-07-10 09:29:51 +01:00
meta = with lib; {
homepage = "http://bleachbit.sourceforge.net";
2015-07-10 09:29:51 +01: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 09:29:51 +01:00
};
}