Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 30 lines 756 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 nativeBuildInputs = [ pkgconfig ]; 13 14 propagatedBuildInputs = [ nss nspr ]; 15 16 configureFlags = [ "--enable-nss" ]; 17 18 postInstall = '' 19 substituteInPlace $out/lib/liboauth.la \ 20 --replace "-lnss3" "-L${nss.out}/lib -lnss3" 21 ''; 22 23 meta = with stdenv.lib; { 24 platforms = platforms.linux; 25 description = "C library implementing the OAuth secure authentication protocol"; 26 homepage = http://liboauth.sourceforge.net/; 27 repositories.git = https://github.com/x42/liboauth.git; 28 }; 29 30}