nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "libb2";
5 version = "0.98.1";
6
7 src = fetchFromGitHub {
8 owner = "BLAKE2";
9 repo = "libb2";
10 rev = "v${version}";
11 sha256 = "0qj8aaqvfcavj1vj5asm4pqm03ap7q8x4c2fy83cqggvky0frgya";
12 };
13
14 preConfigure = ''
15 patchShebangs autogen.sh
16 ./autogen.sh
17 '';
18
19 configureFlags = lib.optional stdenv.hostPlatform.isx86 "--enable-fat=yes";
20
21 nativeBuildInputs = [ autoconf automake libtool pkg-config ];
22
23 doCheck = true;
24
25 meta = with lib; {
26 description = "The BLAKE2 family of cryptographic hash functions";
27 homepage = "https://blake2.net/";
28 platforms = platforms.all;
29 maintainers = with maintainers; [ dfoxfranke dotlambda ];
30 license = licenses.cc0;
31 };
32}