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

33 lines
815 B
Nix
Raw Normal View History

2019-03-23 10:57:47 +00:00
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config }:
2018-05-11 16:00:48 +01:00
stdenv.mkDerivation rec {
pname = "libb2";
2019-03-23 10:57:47 +00:00
version = "0.98.1";
2015-08-23 18:00:31 +01:00
2019-03-23 10:57:47 +00:00
src = fetchFromGitHub {
owner = "BLAKE2";
repo = "libb2";
rev = "v${version}";
sha256 = "0qj8aaqvfcavj1vj5asm4pqm03ap7q8x4c2fy83cqggvky0frgya";
};
2018-05-11 16:00:48 +01:00
preConfigure = ''
patchShebangs autogen.sh
./autogen.sh
'';
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isx86 "--enable-fat=yes";
2019-03-23 10:57:47 +00:00
nativeBuildInputs = [ autoconf automake libtool pkg-config ];
2018-05-11 16:00:48 +01:00
doCheck = true;
meta = with stdenv.lib; {
2015-08-23 18:00:31 +01:00
description = "The BLAKE2 family of cryptographic hash functions";
homepage = "https://blake2.net/";
2015-08-23 18:00:31 +01:00
platforms = platforms.all;
2019-03-23 10:57:47 +00:00
maintainers = with maintainers; [ dfoxfranke dotlambda ];
2015-08-23 18:00:31 +01:00
license = licenses.cc0;
};
}