Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 28 lines 714 B view raw
1{ fetchurl, stdenv, nss, nspr, pkgconfig }: 2 3 4stdenv.mkDerivation rec { 5 name = "liboauth-1.0.3"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/liboauth/${name}.tar.gz"; 9 sha256 = "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd"; 10 }; 11 12 buildInputs = [ pkgconfig nss nspr ]; 13 14 configureFlags = [ "--enable-nss" ]; 15 16 postInstall = '' 17 substituteInPlace $out/lib/liboauth.la \ 18 --replace "-lnss3" "-L${nss}/lib -lnss3" 19 ''; 20 21 meta = with stdenv.lib; { 22 platforms = platforms.linux; 23 description = "C library implementing the OAuth secure authentication protocol"; 24 homepage = http://liboauth.sourceforge.net/; 25 repositories.git = https://github.com/x42/liboauth.git; 26 }; 27 28}