lol
1{ stdenv, fetchzip, openmp ? null }:
2
3with stdenv.lib;
4
5stdenv.mkDerivation rec {
6 name = "b2sum-${version}";
7 version = "unstable-2018-06-11";
8
9 src = fetchzip {
10 url = "https://github.com/BLAKE2/BLAKE2/archive/320c325437539ae91091ce62efec1913cd8093c2.tar.gz";
11 sha256 = "0agmc515avdpr64bsgv87wby2idm0d3wbndxzkhdfjgzhgv0rb8k";
12 };
13
14 sourceRoot = "source/b2sum";
15
16 buildInputs = [ openmp ];
17
18 buildFlags = [ (optional (isNull openmp) "NO_OPENMP=1") ];
19 installFlags = [ "PREFIX=$(out)" ];
20
21 meta = {
22 description = "The b2sum utility is similar to the md5sum or shasum utilities but for BLAKE2";
23 homepage = "https://blake2.net";
24 license = with licenses; [ asl20 cc0 openssl ];
25 maintainers = with maintainers; [ kirelagin ];
26 platforms = platforms.all;
27 };
28}