3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libb2/default.nix

30 lines
718 B
Nix
Raw Normal View History

{ stdenv, fetchurl, autoconf, automake, libtool }:
2018-05-11 16:00:48 +01:00
stdenv.mkDerivation rec {
name = "libb2-${version}";
version = "0.98";
2015-08-23 18:00:31 +01:00
src = fetchurl {
url = "https://blake2.net/${name}.tar.gz";
2018-05-11 16:00:48 +01:00
sha256 = "1852gh8wwnsghdb9zhxdhw0173plpqzk684npxbl4bzk1hhzisal";
};
2018-05-11 16:00:48 +01:00
preConfigure = ''
patchShebangs autogen.sh
./autogen.sh
'';
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isx86 "--enable-fat=yes";
2018-05-11 16:00:48 +01:00
nativeBuildInputs = [ autoconf automake libtool ];
doCheck = true;
meta = with stdenv.lib; {
2015-08-23 18:00:31 +01:00
description = "The BLAKE2 family of cryptographic hash functions";
platforms = platforms.all;
maintainers = with maintainers; [ dfoxfranke ];
license = licenses.cc0;
};
}