2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchzip, openmp ? null }:
|
2018-08-06 12:47:29 +01:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
with lib;
|
2018-08-04 15:35:19 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "b2sum";
|
2018-08-06 12:47:29 +01:00
|
|
|
version = "unstable-2018-06-11";
|
2018-08-04 15:35:19 +01:00
|
|
|
|
2018-08-06 12:47:29 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/BLAKE2/BLAKE2/archive/320c325437539ae91091ce62efec1913cd8093c2.tar.gz";
|
|
|
|
sha256 = "0agmc515avdpr64bsgv87wby2idm0d3wbndxzkhdfjgzhgv0rb8k";
|
2018-08-04 15:35:19 +01:00
|
|
|
};
|
2018-08-06 12:47:29 +01:00
|
|
|
|
|
|
|
sourceRoot = "source/b2sum";
|
2018-08-04 15:35:19 +01:00
|
|
|
|
|
|
|
buildInputs = [ openmp ];
|
|
|
|
|
2019-04-24 04:48:22 +01:00
|
|
|
buildFlags = [ (optional (openmp == null) "NO_OPENMP=1") ];
|
2018-08-04 15:35:19 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2018-08-06 12:47:29 +01:00
|
|
|
meta = {
|
2018-08-04 15:35:19 +01:00
|
|
|
description = "The b2sum utility is similar to the md5sum or shasum utilities but for BLAKE2";
|
|
|
|
homepage = "https://blake2.net";
|
|
|
|
license = with licenses; [ asl20 cc0 openssl ];
|
|
|
|
maintainers = with maintainers; [ kirelagin ];
|
2018-12-09 23:43:46 +00:00
|
|
|
# "This code requires at least SSE2."
|
|
|
|
platforms = with platforms; [ "x86_64-linux" "i686-linux" ] ++ darwin;
|
2018-08-04 15:35:19 +01:00
|
|
|
};
|
|
|
|
}
|