Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ fetchurl, fetchpatch, lib, stdenv, zlib, openssl, libuuid, pkg-config, bzip2 }: 2 3stdenv.mkDerivation rec { 4 version = "20201230"; 5 pname = "libewf"; 6 7 src = fetchurl { 8 url = "https://github.com/libyal/libewf/releases/download/${version}/libewf-experimental-${version}.tar.gz"; 9 hash = "sha256-10r4jPzsA30nHQzjdg/VkwTG1PwOskwv8Bra34ZPMgc="; 10 }; 11 12 patches = [ 13 # fix build with OpenSSL 3.0 14 (fetchpatch { 15 url = "https://github.com/libyal/libewf/commit/033ea5b4e5f8f1248f74a2ec61fc1be183c6c46b.patch"; 16 hash = "sha256-R4+NO/91kiZP48SJyVF9oYjKCg1h/9Kh8/0VOEmJXPQ="; 17 }) 18 ]; 19 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ zlib openssl libuuid ] 22 ++ lib.optionals stdenv.isDarwin [ bzip2 ]; 23 24 meta = { 25 description = "Library for support of the Expert Witness Compression Format"; 26 homepage = "https://sourceforge.net/projects/libewf/"; 27 license = lib.licenses.lgpl3; 28 maintainers = [ lib.maintainers.raskin ] ; 29 platforms = lib.platforms.unix; 30 }; 31}