14 stdenv.mkDerivation (finalAttrs: {
19 url = "mirror://sourceforge/gprename/gprename-${finalAttrs.version}.zip";
20 hash = "sha256-Du9OO2qeB1jUEJFcVYmLbJAGi2p/IVe3sqladq09AyY=";
29 grep -Ev 'desktop-file-install|update-desktop-database' Makefile | sponge Makefile
31 substituteInPlace Makefile \
32 --replace '/usr/share' '$(DESTDIR)/share'
34 substituteInPlace bin/gprename \
35 --replace '/usr/share' $out/share \
36 --replace '/usr/local/share' $out/share
39 makeFlags = [ "DESTDIR=$(out)" ];
45 wrapProgram $out/bin/gprename \
47 perlPackages.makeFullPerlPath (
57 --prefix GI_TYPELIB_PATH : ${
58 lib.makeSearchPath "/lib/girepository-1.0" [
69 description = "Complete batch renamer for files and directories";
70 homepage = "https://gprename.sourceforge.net/index.php";
71 license = lib.licenses.gpl3Plus;
72 mainProgram = "gprename";
73 maintainers = with lib.maintainers; [ quantenzitrone ];