audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / li / liboauth / package.nix
blob12552d6e4c033ff907e66350911e35c03398b812
2   fetchurl,
3   lib,
4   stdenv,
5   nss,
6   nspr,
7   pkg-config,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "liboauth";
12   version = "1.0.3";
14   src = fetchurl {
15     url = "mirror://sourceforge/liboauth/${pname}-${version}.tar.gz";
16     sha256 = "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd";
17   };
19   outputs = [
20     "out"
21     "dev"
22   ];
24   nativeBuildInputs = [ pkg-config ];
26   propagatedBuildInputs = [
27     nss
28     nspr
29   ];
31   configureFlags = [ "--enable-nss" ];
33   postInstall = ''
34     substituteInPlace $out/lib/liboauth.la \
35       --replace "-lnss3" "-L${nss.out}/lib -lnss3"
36   '';
38   meta = with lib; {
39     platforms = platforms.all;
40     description = "C library implementing the OAuth secure authentication protocol";
41     homepage = "http://liboauth.sourceforge.net/";
42     license = licenses.mit;
43   };