1 { fetchurl, lib, stdenv, nss, nspr, pkg-config }:
4 stdenv.mkDerivation rec {
9 url = "mirror://sourceforge/liboauth/${pname}-${version}.tar.gz";
10 sha256 = "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd";
13 outputs = [ "out" "dev" ];
15 nativeBuildInputs = [ pkg-config ];
17 propagatedBuildInputs = [ nss nspr ];
19 configureFlags = [ "--enable-nss" ];
22 substituteInPlace $out/lib/liboauth.la \
23 --replace "-lnss3" "-L${nss.out}/lib -lnss3"
27 platforms = platforms.all;
28 description = "C library implementing the OAuth secure authentication protocol";
29 homepage = "http://liboauth.sourceforge.net/";
30 license = licenses.mit;