2014-12-13 01:20:04 +01:00
|
|
|
{ stdenv, fetchurl, unzip, autoconf, automake, libtool,
|
2015-05-10 00:20:02 +02:00
|
|
|
pkgconfig, libsodium, python }:
|
2014-12-13 01:20:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libmacaroons-${version}";
|
2015-11-03 15:19:10 +01:00
|
|
|
version = "0.3.0";
|
2014-12-13 01:20:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-11-03 15:19:10 +01:00
|
|
|
url = "https://github.com/rescrv/libmacaroons/archive/releases/${version}.zip";
|
|
|
|
sha256 = "18c44424jri0p5la6jgrnlz5p937hk7ws2mldhzjwisqyf5qld43";
|
2014-12-13 01:20:04 +01:00
|
|
|
};
|
2015-05-10 00:20:02 +02:00
|
|
|
buildInputs = [ unzip autoconf automake libtool python libsodium pkgconfig ];
|
2014-12-13 01:20:04 +01:00
|
|
|
preConfigure = "autoreconf -i";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''Macaroons are flexible authorization credentials that
|
|
|
|
support decentralized delegation, attenuation, and verification.'';
|
|
|
|
homepage = https://github.com/rescrv/libmacaroons;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|