diff options
author | Will Dietz <w@wdtz.org> | 2019-03-22 14:29:50 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-03-22 17:35:11 -0500 |
commit | 1390b5809cb1c8869ff5ac687e6968dcaa5da745 (patch) | |
tree | 20129d8fed05839cbdc2ab36c7a15ad628f4a363 /pkgs/applications/misc/bleachbit | |
parent | db7be5298809304d55bfc563f2685854baf83aea (diff) | |
download | nixlib-1390b5809cb1c8869ff5ac687e6968dcaa5da745.tar nixlib-1390b5809cb1c8869ff5ac687e6968dcaa5da745.tar.gz nixlib-1390b5809cb1c8869ff5ac687e6968dcaa5da745.tar.bz2 nixlib-1390b5809cb1c8869ff5ac687e6968dcaa5da745.tar.lz nixlib-1390b5809cb1c8869ff5ac687e6968dcaa5da745.tar.xz nixlib-1390b5809cb1c8869ff5ac687e6968dcaa5da745.tar.zst nixlib-1390b5809cb1c8869ff5ac687e6968dcaa5da745.zip |
bleachbit: 2.0 -> 2.2
https://www.bleachbit.org/news/bleachbit-22
Diffstat (limited to 'pkgs/applications/misc/bleachbit')
-rw-r--r-- | pkgs/applications/misc/bleachbit/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/applications/misc/bleachbit/default.nix b/pkgs/applications/misc/bleachbit/default.nix index f0dce54675cd..b2348bbf7525 100644 --- a/pkgs/applications/misc/bleachbit/default.nix +++ b/pkgs/applications/misc/bleachbit/default.nix @@ -1,25 +1,26 @@ -{ stdenv, pythonPackages, fetchurl }: +{ stdenv, pythonPackages, fetchurl, gettext }: pythonPackages.buildPythonApplication rec { - name = "bleachbit-${version}"; - version = "2.0"; - - namePrefix = ""; + pname = "bleachbit"; + version = "2.2"; src = fetchurl { - url = "mirror://sourceforge/bleachbit/${name}.tar.bz2"; - sha256 = "0ps98zx4n13q92bq7ykqi6hj3i7brdqgm87i9gk6ibvljp1vxdz9"; + url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; + sha256 = "1yj9bc3k6s1aib7znb79h5rybfv691zz4szxkwf9fm9nr0dws603"; }; + nativeBuildInputs = [ gettext ]; buildInputs = [ pythonPackages.wrapPython ]; + # 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' {} \; + ''; + doCheck = false; postInstall = '' - mkdir -p $out/bin - cp bleachbit.py $out/bin/bleachbit - chmod +x $out/bin/bleachbit - - substituteInPlace $out/bin/bleachbit --replace "#!/usr/bin/env python" "#!${pythonPackages.python.interpreter}" + make install SHELL=${stdenv.shell} prefix=${placeholder "out"} ''; propagatedBuildInputs = with pythonPackages; [ pygtk ]; |