nixpkgs/pkgs/tools/security/b2sum/default.nix

27 lines
828 B
Nix
Raw Normal View History

2018-08-04 15:54:22 +00:00
{ stdenv, fetchurl, openmp ? null }:
2018-08-04 14:35:19 +00:00
stdenv.mkDerivation rec {
2018-08-04 15:54:22 +00:00
version = "unstable-2018-06-11";
rev = "320c325437539ae91091ce62efec1913cd8093c2";
2018-08-04 14:35:19 +00:00
name = "b2sum-${version}";
src = fetchurl {
2018-08-04 15:54:22 +00:00
url = "https://github.com/BLAKE2/BLAKE2/archive/${rev}.tar.gz";
sha256 = "19f07dwli9ymlc87ikn84j4h5fv57afwj9ni7s0jkaym5l0q6nqw";
2018-08-04 14:35:19 +00:00
};
postUnpack = "sourceRoot=$sourceRoot/b2sum";
buildInputs = [ openmp ];
makeFlags = stdenv.lib.optional (isNull openmp) "NO_OPENMP=1";
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
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;
};
}