parent
0b6a6c903e
commit
6dc6a549c8
@ -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/;
|
||||
|
Loading…
Reference in New Issue
Block a user