nixpkgs/pkgs/development/libraries/liboauth/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
782 B
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, nss, nspr, pkg-config }:
2014-01-20 15:38:39 +00:00
stdenv.mkDerivation rec {
2021-06-22 13:21:29 +00:00
pname = "liboauth";
version = "1.0.3";
2014-01-20 15:38:39 +00:00
src = fetchurl {
2021-06-22 13:21:29 +00:00
url = "mirror://sourceforge/liboauth/${pname}-${version}.tar.gz";
sha256 = "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd";
2014-01-20 15:38:39 +00:00
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ nss nspr ];
configureFlags = [ "--enable-nss" ];
2014-01-20 15:38:39 +00:00
postInstall = ''
substituteInPlace $out/lib/liboauth.la \
--replace "-lnss3" "-L${nss.out}/lib -lnss3"
'';
meta = with lib; {
2021-03-11 18:02:42 +00:00
platforms = platforms.all;
2014-01-20 15:38:39 +00:00
description = "C library implementing the OAuth secure authentication protocol";
homepage = "http://liboauth.sourceforge.net/";
2018-10-18 19:23:39 +00:00
license = licenses.mit;
2014-01-20 15:38:39 +00:00
};
2014-01-20 15:38:39 +00:00
}