Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 29 lines 860 B view raw
1{ lib, stdenv, fetchFromGitHub, zlib, curl, expat, fuse, openssl 2, autoreconfHook, python3, libiconv 3}: 4 5stdenv.mkDerivation rec { 6 version = "3.7.20"; 7 pname = "afflib"; 8 9 src = fetchFromGitHub { 10 owner = "sshock"; 11 repo = "AFFLIBv3"; 12 rev = "v${version}"; 13 sha256 = "sha256-xkqBfTftzn+rgeuoaKfHP7vQmy4VZuaCq8VFlfZTUE4="; 14 }; 15 16 nativeBuildInputs = [ autoreconfHook ]; 17 buildInputs = [ zlib curl expat openssl python3 ] 18 ++ lib.optionals (with stdenv; isLinux || isDarwin) [ fuse ] 19 ++ lib.optionals stdenv.isDarwin [ libiconv ]; 20 21 meta = { 22 homepage = "http://afflib.sourceforge.net/"; 23 description = "Advanced forensic format library"; 24 platforms = lib.platforms.unix; 25 license = lib.licenses.bsdOriginal; 26 maintainers = [ lib.maintainers.raskin ]; 27 downloadPage = "https://github.com/sshock/AFFLIBv3/tags"; 28 }; 29}