@@ -1,17 +1,26 @@
1−{stdenv, fetchurl}:
2−with stdenv; with lib;
3−mkDerivation rec {
4− name = "libb2-${meta.version}";
1+{ stdenv, fetchurl, autoconf, automake, libtool }:
2+
3+stdenv.mkDerivation rec {
4+ name = "libb2-${version}";
5+ version = "0.98";
56
67 src = fetchurl {
78 url = "https://blake2.net/${name}.tar.gz";
8− sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051";
9+ sha256 = "1852gh8wwnsghdb9zhxdhw0173plpqzk684npxbl4bzk1hhzisal";
910 };
1011
12+ preConfigure = ''
13+ patchShebangs autogen.sh
14+ ./autogen.sh
15+ '';
16+
1117 configureFlags = [ "--enable-fat=yes" ];
1218
13− meta = {
14− version = "0.97";
19+ nativeBuildInputs = [ autoconf automake libtool ];
20+
21+ doCheck = true;
22+
23+ meta = with stdenv.lib; {
1524 description = "The BLAKE2 family of cryptographic hash functions";
1625 platforms = platforms.all;
1726 maintainers = with maintainers; [ dfoxfranke ];