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

30 lines
718 B
Nix
Raw Normal View History

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