liboauth: fix for new nss header layout

This commit is contained in:
Robin Gloster 2017-10-09 19:24:20 +02:00
parent 9304ae04d7
commit 4bba6650a6
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -10,11 +10,12 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ nss nspr ];
configureFlags = [ "--enable-nss" ];
NIX_CFLAGS_COMPILE = [ "-I${nss.dev}/include/nss" ];
postInstall = ''
substituteInPlace $out/lib/liboauth.la \
--replace "-lnss3" "-L${nss.out}/lib -lnss3"
@ -26,5 +27,4 @@ stdenv.mkDerivation rec {
homepage = http://liboauth.sourceforge.net/;
repositories.git = https://github.com/x42/liboauth.git;
};
}