Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 libtool, 5 openssh, 6 pkg-config, 7 qt5, 8 rsync, 9 stdenv, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "luckybackup"; 14 version = "0.5.0"; 15 16 src = fetchurl { 17 url = "mirror://sourceforge/project/luckybackup/${finalAttrs.version}/source/luckybackup-${finalAttrs.version}.tar.gz"; 18 hash = "sha256-6AGvJIPL3WK8mvji3tJSxRrbrYFILikQQvWOIcPUkls="; 19 }; 20 21 outputs = [ 22 "out" 23 "doc" 24 "man" 25 ]; 26 27 nativeBuildInputs = [ 28 libtool 29 pkg-config 30 qt5.qmake 31 qt5.wrapQtAppsHook 32 ]; 33 34 buildInputs = [ 35 rsync 36 openssh 37 qt5.qtwayland 38 ]; 39 40 strictDeps = true; 41 42 prePatch = '' 43 for File in \ 44 luckybackup.pro \ 45 menu/luckybackup-pkexec \ 46 menu/luckybackup-su.desktop \ 47 menu/luckybackup.desktop \ 48 menu/net.luckybackup.su.policy \ 49 src/functions.cpp \ 50 src/global.cpp \ 51 src/scheduleDialog.cpp; do 52 substituteInPlace $File --replace "/usr" "$out" 53 done 54 ''; 55 56 meta = { 57 homepage = "https://luckybackup.sourceforge.net/"; 58 description = "Powerful, fast and reliable backup & sync tool"; 59 longDescription = '' 60 luckyBackup is an application for data back-up and synchronization 61 powered by the rsync tool. 62 63 It is simple to use, fast (transfers over only changes made and not 64 all data), safe (keeps your data safe by checking all declared directories 65 before proceeding in any data manipulation), reliable and fully 66 customizable. 67 ''; 68 license = lib.licenses.gpl3Plus; 69 mainProgram = "luckybackup"; 70 maintainers = with lib.maintainers; [ ]; 71 platforms = lib.platforms.linux; 72 }; 73})