phototonic: move to qmakeHook
This reverts commit a0dd8d5afed35629c1055661d9262c64fc472402.
This commit is contained in:
parent
0b6a6c903e
commit
6dc6a549c8
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, qtbase, exiv2 }:
|
{ stdenv, fetchFromGitHub, qtbase, qmakeHook, exiv2 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "phototonic-${version}";
|
name = "phototonic-${version}";
|
||||||
@ -14,16 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ qtbase exiv2 ];
|
buildInputs = [ qtbase exiv2 ];
|
||||||
|
nativeBuildInputs = [ qmakeHook ];
|
||||||
|
|
||||||
configurePhase = ''
|
preConfigure = ''
|
||||||
runHook preConfigure
|
sed -i 's;/usr;$$PREFIX/;g' phototonic.pro
|
||||||
sed -i 's;/usr;;' phototonic.pro
|
|
||||||
qmake PREFIX=""
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An image viewer and organizer";
|
description = "An image viewer and organizer";
|
||||||
homepage = http://oferkv.github.io/phototonic/;
|
homepage = http://oferkv.github.io/phototonic/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user