Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 29 lines 718 B view raw
1{ stdenv, fetchurl, autoconf, automake, libtool }: 2 3stdenv.mkDerivation rec { 4 name = "libb2-${version}"; 5 version = "0.98"; 6 7 src = fetchurl { 8 url = "https://blake2.net/${name}.tar.gz"; 9 sha256 = "1852gh8wwnsghdb9zhxdhw0173plpqzk684npxbl4bzk1hhzisal"; 10 }; 11 12 preConfigure = '' 13 patchShebangs autogen.sh 14 ./autogen.sh 15 ''; 16 17 configureFlags = stdenv.lib.optional stdenv.hostPlatform.isx86 "--enable-fat=yes"; 18 19 nativeBuildInputs = [ autoconf automake libtool ]; 20 21 doCheck = true; 22 23 meta = with stdenv.lib; { 24 description = "The BLAKE2 family of cryptographic hash functions"; 25 platforms = platforms.all; 26 maintainers = with maintainers; [ dfoxfranke ]; 27 license = licenses.cc0; 28 }; 29}