1 { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config
2 , acl, librsync, ncurses, openssl_legacy, zlib, uthash }:
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "sha256-y6kRd1jD6t+Q6d5t7W9MDuk+m2Iq1THQkP50PJwI7Nc=";
16 # Pull upstream fix for ncurses-6.3 support
18 name = "ncurses-6.3.patch";
19 url = "https://github.com/grke/burp/commit/1d6c931af7c11f164cf7ad3479781e8f03413496.patch";
20 sha256 = "14sfbfahlankz3xg6v10i8fnmpnmqpp73q9xm0l0hnjh25igv6bl";
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.hostPlatform.isDarwin) acl;
30 configureFlags = [ "--localstatedir=/var" ];
32 installFlags = [ "localstatedir=/tmp" ];
35 description = "BURP - BackUp and Restore Program";
36 homepage = "https://burp.grke.org";
37 license = licenses.agpl3Plus;
38 maintainers = with maintainers; [ arjan-s ];
39 platforms = platforms.all;