at 23.05-pre 39 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config 2, acl, librsync, ncurses, openssl, zlib, uthash }: 3 4stdenv.mkDerivation rec { 5 pname = "burp"; 6 version = "2.2.18"; 7 8 src = fetchFromGitHub { 9 owner = "grke"; 10 repo = "burp"; 11 rev = version; 12 sha256 = "1zhq240kz881vs2s620qp0kifmgr582caalm85ls789w9rmdkhjl"; 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 buildInputs = [ librsync ncurses openssl zlib uthash ] 26 ++ lib.optional (!stdenv.isDarwin) acl; 27 28 configureFlags = [ "--localstatedir=/var" ]; 29 30 installFlags = [ "localstatedir=/tmp" ]; 31 32 meta = with lib; { 33 description = "BURP - BackUp and Restore Program"; 34 homepage = "https://burp.grke.org"; 35 license = licenses.agpl3; 36 maintainers = with maintainers; [ tokudan ]; 37 platforms = platforms.all; 38 }; 39}