17 pythonEnv = python3.withPackages (ps: with ps; [ pyqt5 ]);
18 binPath = lib.makeBinPath [
27 version = "1.0.7-dev";
29 src = fetchFromGitHub {
32 rev = "ad74684272a31eee6af289cc59fd90fd962d2806";
33 hash = "sha256-jdcGGTqr3f3Xnp6thYmASQYiZh9nagLUTmlFnJ5Hqmc=";
42 dontWrapQtApps = true;
50 installManPage doc/trimage.1
51 install -Dm444 desktop/trimage.desktop -t $out/share/applications
52 install -Dm444 desktop/trimage.svg -t $out/share/icons/hicolor/scalable/apps
54 makeWrapper ${pythonEnv}/bin/python $out/bin/trimage \
55 --add-flags "$out/trimage/trimage.py" \
56 --prefix PATH : ${binPath} \
57 "''${qtWrapperArgs[@]}"
63 description = "Cross-platform tool for optimizing PNG and JPG files";
64 homepage = "https://github.com/Kilian/Trimage";
65 license = lib.licenses.mit;
66 mainProgram = "trimage";
67 maintainers = with lib.maintainers; [ tomasajt ];