photoqt: use wrapQtProgram

+4 -8
+4 -8
pkgs/applications/graphics/photoqt/default.nix
··· 1 - { stdenv, fetchurl, cmake, makeWrapper, exiv2, graphicsmagick 1 + { stdenv, fetchurl, cmake, makeQtWrapper, exiv2, graphicsmagick 2 2 , qtbase, qtdeclarative, qtmultimedia, qtquickcontrols, qttools 3 3 }: 4 4 5 5 let 6 6 version = "1.3"; 7 - qmlPath = stdenv.lib.makeSearchPath "lib/qt5/qml/" [ 8 - qtquickcontrols 9 - qtdeclarative 10 - qtmultimedia 11 - ]; 12 7 in 13 8 stdenv.mkDerivation rec { 14 9 name = "photoqt-${version}"; ··· 18 13 }; 19 14 20 15 buildInputs = [ 21 - cmake makeWrapper qtbase qtquickcontrols qttools exiv2 graphicsmagick 16 + cmake makeQtWrapper qtbase qtquickcontrols qttools exiv2 graphicsmagick 17 + qtmultimedia qtdeclarative 22 18 ]; 23 19 24 20 preConfigure = '' ··· 26 22 ''; 27 23 28 24 postInstall = '' 29 - wrapProgram $out/bin/photoqt --set QML2_IMPORT_PATH "${qmlPath}" 25 + wrapQtProgram $out/bin/photoqt 30 26 ''; 31 27 32 28 meta = {