diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-08-25 23:49:34 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-09-30 00:40:56 +0200 |
commit | 56cfbfb0d8534122d1eaf45ef945d8010f831133 (patch) | |
tree | 2707ea14d154a2d6e20e23b73a5462a7448779d3 /pkgs/duply | |
parent | 660cb973260f62551294f73e0811b37fc10fd467 (diff) | |
download | Nix-56cfbfb0d8534122d1eaf45ef945d8010f831133.tar.gz Nix-56cfbfb0d8534122d1eaf45ef945d8010f831133.tar.zst Nix-56cfbfb0d8534122d1eaf45ef945d8010f831133.zip |
Move packages to flakes
Diffstat (limited to 'pkgs/duply')
-rw-r--r-- | pkgs/duply/default.nix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/pkgs/duply/default.nix b/pkgs/duply/default.nix deleted file mode 100644 index 2d24d4f..0000000 --- a/pkgs/duply/default.nix +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | { stdenv, fetchurl, makeWrapper, coreutils, python3, duplicity, gawk, gnupg1, bash, gnugrep, txt2man, which }: | ||
2 | stdenv.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 python3 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 | } | ||