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

33 lines
823 B
Nix
Raw Normal View History

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