summary refs log tree commit diff
path: root/pkgs/development/libraries/libb2/default.nix
blob: 58961a18df17e0380da104bc9ae14367319b0c0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, hostPlatform, fetchurl, autoconf, automake, libtool }:

stdenv.mkDerivation rec {
  name = "libb2-${version}";
  version = "0.98";

  src = fetchurl {
    url = "https://blake2.net/${name}.tar.gz";
    sha256 = "1852gh8wwnsghdb9zhxdhw0173plpqzk684npxbl4bzk1hhzisal";
  };

  preConfigure = ''
    patchShebangs autogen.sh
    ./autogen.sh
  '';

  configureFlags = stdenv.lib.optional hostPlatform.isx86 "--enable-fat=yes";

  nativeBuildInputs = [ autoconf automake libtool ];

  doCheck = true;

  meta = with stdenv.lib; {
    description = "The BLAKE2 family of cryptographic hash functions";
    platforms = platforms.all;
    maintainers = with maintainers; [ dfoxfranke ];
    license = licenses.cc0;
  };
}