photoqt: use wrapQtProgram

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