diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libb2/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libb2/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libb2/default.nix b/nixpkgs/pkgs/development/libraries/libb2/default.nix new file mode 100644 index 000000000000..f7fffa8b2987 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libb2/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, autoconf, automake, libtool }: + +stdenv.mkDerivation rec { + name = "libb2-${version}"; + version = "0.98"; + + src = fetchurl { + url = "https://blake2.net/${name}.tar.gz"; + sha256 = "1852gh8wwnsghdb9zhxdhw0173plpqzk684npxbl4bzk1hhzisal"; + }; + + preConfigure = '' + patchShebangs autogen.sh + ./autogen.sh + ''; + + configureFlags = stdenv.lib.optional stdenv.hostPlatform.isx86 "--enable-fat=yes"; + + nativeBuildInputs = [ autoconf automake libtool ]; + + doCheck = true; + + meta = with stdenv.lib; { + description = "The BLAKE2 family of cryptographic hash functions"; + platforms = platforms.all; + maintainers = with maintainers; [ dfoxfranke ]; + license = licenses.cc0; + }; +} |