11 stdenv.mkDerivation rec {
12 pname = "masterpdfeditor";
16 url = "https://code-industry.net/public/master-pdf-editor-${version}-qt5.x86_64.tar.gz";
17 hash = "sha256-CbrhhQJ0iiXz8hUJEi+/xb2ZGbunuPuIIgmCRgJhNVU=";
22 libsForQt5.wrapQtAppsHook
25 buildInputs = with libsForQt5; [
39 p=$out/opt/masterpdfeditor
42 substituteInPlace masterpdfeditor5.desktop \
43 --replace-fail 'Exec=/opt/master-pdf-editor-5' "Exec=$out/bin" \
44 --replace-fail 'Path=/opt/master-pdf-editor-5' "Path=$out/bin" \
45 --replace-fail 'Icon=/opt/master-pdf-editor-5' "Icon=$out/share/pixmaps"
47 install -Dm644 -t $out/share/pixmaps masterpdfeditor5.png
48 install -Dm644 -t $out/share/applications masterpdfeditor5.desktop
49 install -Dm755 -t $p masterpdfeditor5
50 install -Dm644 license_en.txt $out/share/$name/LICENSE
51 ln -s $p/masterpdfeditor5 $out/bin/masterpdfeditor5
52 cp -v -r stamps templates lang fonts $p
58 description = "Master PDF Editor";
59 homepage = "https://code-industry.net/free-pdf-editor/";
60 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
61 license = licenses.unfreeRedistributable;
62 platforms = [ "x86_64-linux" ];
63 maintainers = with maintainers; [ cmcdragonkai ];
64 mainProgram = "masterpdfeditor5";