summary refs log tree commit diff
path: root/pkgs/servers/nosql/hyperdex/libmacaroons.nix
blob: 2d709c5bbd1d3372bea13dd6a21582113ded6c36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, fetchurl, unzip, autoconf, automake, libtool, 
  pkgconfig, sodium, python }:
stdenv.mkDerivation rec {
  name = "libmacaroons-${version}";
  version = "HEAD";

  src = fetchurl {
    url = "https://github.com/rescrv/libmacaroons/archive/6febf3ce6c4c77a46d24b40ed29b03ffbfb175a7.zip";
    sha256 = "0b4qgim87398chvc3qhxfqv2l1cyl65rhyknln8lk0gq9y00p1ik";
  };
  buildInputs = [ unzip autoconf automake libtool python sodium pkgconfig ];
  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;
  };
}