aboutsummaryrefslogtreecommitdiff
path: root/pkgs/duply
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 12:12:12 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 12:12:12 +0200
commit98de2045a749b25d031b174c940096b4f5406b9d (patch)
tree3da1a45ec067551d233bb800eee912d44c5e7fdd /pkgs/duply
parenta2230e848bc85e484ef14163ac90fdb7045855f7 (diff)
downloadNix-98de2045a749b25d031b174c940096b4f5406b9d.tar.gz
Nix-98de2045a749b25d031b174c940096b4f5406b9d.tar.zst
Nix-98de2045a749b25d031b174c940096b4f5406b9d.zip
Move more packages to split files
Diffstat (limited to 'pkgs/duply')
-rw-r--r--pkgs/duply/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/duply/default.nix b/pkgs/duply/default.nix
new file mode 100644
index 0000000..3816996
--- /dev/null
+++ b/pkgs/duply/default.nix
@@ -0,0 +1,40 @@
1{ stdenv, fetchurl, makeWrapper, coreutils, python2, duplicity, gawk, gnupg1, bash, gnugrep, txt2man, which }:
2stdenv.mkDerivation rec {
3 name = "duply-${version}";
4 version = "2.1";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.1.x/duply_${version}.tgz";
8 sha256 = "0i5j7h7h6ssrwhll0sfhymisshg54kx7j45zcqffzjxa0ylvzlm8";
9 };
10
11 buildInputs = [ txt2man makeWrapper ];
12
13 postPatch = "patchShebangs .";
14
15 installPhase = ''
16 mkdir -p "$out/bin"
17 mkdir -p "$out/share/man/man1"
18 install -vD duply "$out/bin"
19 sed -i $out/bin/duply -e "1a \
20 export PATH='${stdenv.lib.makeBinPath [ coreutils python2 duplicity gawk gnupg1 bash gnugrep txt2man which ]}'
21 " -e "1a \
22 export DUPL_PYTHON_BIN=$(basename ${duplicity}/lib/python*)
23 "
24 "$out/bin/duply" txt2man > "$out/share/man/man1/duply.1"
25 '';
26
27 meta = with stdenv.lib; {
28 description = "Shell front end for the duplicity backup tool";
29 longDescription = ''
30 Duply is a shell front end for the duplicity backup tool
31 http://duplicity.nongnu.org/. It greatly simplifies it's usage by
32 implementing backup job profiles, batch commands and more. Who says
33 secure backups on non-trusted spaces are no child's play?
34 '';
35 homepage = http://duply.net/;
36 license = licenses.gpl2;
37 maintainers = [ maintainers.bjornfor ];
38 platforms = stdenv.lib.platforms.unix;
39 };
40}