From 74732ec29895236e587386f690d2ebb1722e0f96 Mon Sep 17 00:00:00 2001 From: Kirill Elagin Date: Sat, 4 Aug 2018 17:35:19 +0300 Subject: [PATCH] b2sum: init at 20160619 --- pkgs/tools/security/b2sum/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/security/b2sum/default.nix diff --git a/pkgs/tools/security/b2sum/default.nix b/pkgs/tools/security/b2sum/default.nix new file mode 100644 index 000000000000..9c14ad974b69 --- /dev/null +++ b/pkgs/tools/security/b2sum/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, openmp }: + +stdenv.mkDerivation rec { + version = "20160619"; + name = "b2sum-${version}"; + + src = fetchurl { + url = "https://github.com/BLAKE2/BLAKE2/archive/${version}.tar.gz"; + sha256 = "0csnlp6kwlyla5s4r6bsrx2jgcwrm9qzisnvfdhmqsz5r8y87b6b"; + }; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 90576e34da08..35542e052e07 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1579,6 +1579,10 @@ with pkgs; asynk = callPackage ../tools/networking/asynk { }; + b2sum = callPackage ../tools/security/b2sum { + inherit (llvmPackages) openmp; + }; + bacula = callPackage ../tools/backup/bacula { }; bareos = callPackage ../tools/backup/bareos { };