diff --git a/pkgs/development/libraries/libb2/default.nix b/pkgs/development/libraries/libb2/default.nix index eae08f0071cb..5ba2f9a0b97b 100644 --- a/pkgs/development/libraries/libb2/default.nix +++ b/pkgs/development/libraries/libb2/default.nix @@ -1,17 +1,26 @@ -{stdenv, fetchurl}: -with stdenv; with lib; -mkDerivation rec { - name = "libb2-${meta.version}"; +{ stdenv, fetchurl, autoconf, automake, libtool }: + +stdenv.mkDerivation rec { + name = "libb2-${version}"; + version = "0.98"; src = fetchurl { url = "https://blake2.net/${name}.tar.gz"; - sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051"; + sha256 = "1852gh8wwnsghdb9zhxdhw0173plpqzk684npxbl4bzk1hhzisal"; }; + preConfigure = '' + patchShebangs autogen.sh + ./autogen.sh + ''; + configureFlags = [ "--enable-fat=yes" ]; - meta = { - version = "0.97"; + 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 ];