Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, coreutils, python3, duplicity, gawk, gnupg, bash 2, gnugrep, txt2man, makeWrapper, which 3}: 4 5stdenv.mkDerivation rec { 6 pname = "duply"; 7 version = "2.4"; 8 9 src = fetchurl { 10 url = "mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.4.x/duply_${version}.tgz"; 11 hash = "sha256-DCrp3o/ukzkfnVaLbIK84bmYnXvqKsvlkGn3GJY3iNg="; 12 }; 13 14 nativeBuildInputs = [ makeWrapper ]; 15 buildInputs = [ txt2man ]; 16 17 postPatch = "patchShebangs ."; 18 19 installPhase = '' 20 mkdir -p "$out/bin" 21 mkdir -p "$out/share/man/man1" 22 install -vD duply "$out/bin" 23 wrapProgram "$out/bin/duply" --prefix PATH : \ 24 ${lib.makeBinPath [ coreutils python3 duplicity gawk gnupg bash gnugrep txt2man which ]} 25 "$out/bin/duply" txt2man > "$out/share/man/man1/duply.1" 26 ''; 27 28 meta = with lib; { 29 description = "Shell front end for the duplicity backup tool"; 30 longDescription = '' 31 Duply is a shell front end for the duplicity backup tool 32 https://www.nongnu.org/duplicity. It greatly simplifies its usage by 33 implementing backup job profiles, batch commands and more. Who says 34 secure backups on non-trusted spaces are no child's play? 35 ''; 36 homepage = "https://duply.net/"; 37 license = licenses.gpl2; 38 maintainers = [ maintainers.bjornfor ]; 39 platforms = lib.platforms.unix; 40 }; 41}