at 23.11-beta 41 lines 1.3 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config 2, acl, librsync, ncurses, openssl_legacy, zlib, uthash }: 3 4stdenv.mkDerivation rec { 5 pname = "burp"; 6 version = "2.4.0"; 7 8 src = fetchFromGitHub { 9 owner = "grke"; 10 repo = "burp"; 11 rev = version; 12 sha256 = "sha256-y6kRd1jD6t+Q6d5t7W9MDuk+m2Iq1THQkP50PJwI7Nc="; 13 }; 14 15 patches = [ 16 # Pull upstream fix for ncurses-6.3 support 17 (fetchpatch { 18 name = "ncurses-6.3.patch"; 19 url = "https://github.com/grke/burp/commit/1d6c931af7c11f164cf7ad3479781e8f03413496.patch"; 20 sha256 = "14sfbfahlankz3xg6v10i8fnmpnmqpp73q9xm0l0hnjh25igv6bl"; 21 }) 22 ]; 23 24 nativeBuildInputs = [ autoreconfHook pkg-config ]; 25 # use openssl_legacy due to burp-2.4.0 not supporting file encryption with openssl 3.0 26 # replace with 'openssl' once burp-3.x has been declared stable and this package upgraded 27 buildInputs = [ librsync ncurses openssl_legacy zlib uthash ] 28 ++ lib.optional (!stdenv.isDarwin) acl; 29 30 configureFlags = [ "--localstatedir=/var" ]; 31 32 installFlags = [ "localstatedir=/tmp" ]; 33 34 meta = with lib; { 35 description = "BURP - BackUp and Restore Program"; 36 homepage = "https://burp.grke.org"; 37 license = licenses.agpl3; 38 maintainers = with maintainers; [ arjan-s ]; 39 platforms = platforms.all; 40 }; 41}