2018-08-06 11:47:29 +00:00
|
|
|
{ stdenv, fetchzip, openmp ? null }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2018-08-04 14:35:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "b2sum-${version}";
|
2018-08-06 11:47:29 +00:00
|
|
|
version = "unstable-2018-06-11";
|
2018-08-04 14:35:19 +00:00
|
|
|
|
2018-08-06 11:47:29 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/BLAKE2/BLAKE2/archive/320c325437539ae91091ce62efec1913cd8093c2.tar.gz";
|
|
|
|
sha256 = "0agmc515avdpr64bsgv87wby2idm0d3wbndxzkhdfjgzhgv0rb8k";
|
2018-08-04 14:35:19 +00:00
|
|
|
};
|
2018-08-06 11:47:29 +00:00
|
|
|
|
|
|
|
sourceRoot = "source/b2sum";
|
2018-08-04 14:35:19 +00:00
|
|
|
|
|
|
|
buildInputs = [ openmp ];
|
|
|
|
|
2018-08-06 11:47:29 +00:00
|
|
|
buildFlags = [ (optional (isNull openmp) "NO_OPENMP=1") ];
|
2018-08-04 14:35:19 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2018-08-06 11:47:29 +00:00
|
|
|
meta = {
|
2018-08-04 14:35:19 +00: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 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|