phototonic: move to qmakeHook

This reverts commit a0dd8d5afe.
This commit is contained in:
Nikolay Amiantov 2016-04-16 22:59:19 +03:00
parent 0b6a6c903e
commit 6dc6a549c8

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, qtbase, exiv2 }:
{ stdenv, fetchFromGitHub, qtbase, qmakeHook, exiv2 }:
stdenv.mkDerivation rec {
name = "phototonic-${version}";
@ -14,16 +14,12 @@ stdenv.mkDerivation rec {
};
buildInputs = [ qtbase exiv2 ];
nativeBuildInputs = [ qmakeHook ];
configurePhase = ''
runHook preConfigure
sed -i 's;/usr;;' phototonic.pro
qmake PREFIX=""
runHook postConfigure
preConfigure = ''
sed -i 's;/usr;$$PREFIX/;g' phototonic.pro
'';
installFlags = [ "INSTALL_ROOT=$(out)" ];
meta = with stdenv.lib; {
description = "An image viewer and organizer";
homepage = http://oferkv.github.io/phototonic/;