qoauth: move to qmake4Hook

This commit is contained in:
Nikolay Amiantov 2016-04-17 02:46:24 +03:00
parent 005dab1a7a
commit e307c3dac2
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, qt4, qca2 }: { stdenv, fetchurl, qt4, qca2, qmake4Hook }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "qoauth-1.0.1"; name = "qoauth-1.0.1";
@ -9,13 +9,13 @@ stdenv.mkDerivation {
sha256 = "1ax0g4dd49a3a1699ams13bkhz690xfwqg8rxp1capbdpf2aa8cp"; sha256 = "1ax0g4dd49a3a1699ams13bkhz690xfwqg8rxp1capbdpf2aa8cp";
}; };
configurePhase = "qmake PREFIX=$prefix";
patchPhase = "sed -e 's/lib64/lib/g' -i src/src.pro"; patchPhase = "sed -e 's/lib64/lib/g' -i src/src.pro";
buildInputs = [ qt4 qca2 ]; buildInputs = [ qt4 qca2 ];
nativeBuildInputs = [ qmake4Hook ];
NIX_CFLAGS_COMPILE="-I${qca2}/include/QtCrypto"; NIX_CFLAGS_COMPILE = [ "-I${qca2}/include/QtCrypto" ];
NIX_LDFLAGS = "-lqca"; NIX_LDFLAGS = [ "-lqca" ];
meta = { meta = {
description = "Qt library for OAuth authentication"; description = "Qt library for OAuth authentication";