Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ mkDerivation, lib, fetchurl 2, pkg-config, libtool, qmake 3, rsync, ssh 4}: 5 6mkDerivation rec { 7 pname = "luckybackup"; 8 version = "0.5.0"; 9 10 src = fetchurl { 11 url = "mirror://sourceforge/project/luckybackup/${version}/source/${pname}-${version}.tar.gz"; 12 sha256 = "0nwjsk1j33pm8882jbj8h6nxn6n5ab9dxqpqkay65pfbhcjay0g8"; 13 }; 14 15 buildInputs = [ rsync ssh ]; 16 17 nativeBuildInputs = [ pkg-config libtool qmake ]; 18 19 prePatch = '' 20 for File in luckybackup.pro menu/luckybackup-pkexec \ 21 menu/luckybackup-su.desktop menu/luckybackup.desktop \ 22 menu/net.luckybackup.su.policy src/functions.cpp \ 23 src/global.cpp src/scheduleDialog.cpp; do 24 substituteInPlace $File --replace "/usr" "$out" 25 done 26 ''; 27 28 meta = with lib; { 29 description = "A powerful, fast and reliable backup & sync tool"; 30 longDescription = '' 31 luckyBackup is an application for data back-up and synchronization 32 powered by the rsync tool. 33 34 It is simple to use, fast (transfers over only changes made and not 35 all data), safe (keeps your data safe by checking all declared directories 36 before proceeding in any data manipulation), reliable and fully 37 customizable. 38 ''; 39 homepage = "https://luckybackup.sourceforge.net/"; 40 license = licenses.gpl3; 41 maintainers = with maintainers; [ AndersonTorres ]; 42 platforms = platforms.linux; 43 }; 44}