summary refs log tree commit diff
diff options
context:
space:
mode:
authornyanloutre <paul@nyanlout.re>2018-04-07 19:42:38 +0200
committernyanloutre <paul@nyanlout.re>2018-04-07 19:42:39 +0200
commit20f18c7d16f31addc5e874d1ca809d14421f412d (patch)
tree21affd85efa6f6b5ff21f06036c1b4538ee0cda0
parente1da086e75b9c4d6676e61b60f730e82d6f3416b (diff)
downloadnixpkgs-20f18c7d16f31addc5e874d1ca809d14421f412d.tar
nixpkgs-20f18c7d16f31addc5e874d1ca809d14421f412d.tar.gz
nixpkgs-20f18c7d16f31addc5e874d1ca809d14421f412d.tar.bz2
nixpkgs-20f18c7d16f31addc5e874d1ca809d14421f412d.tar.lz
nixpkgs-20f18c7d16f31addc5e874d1ca809d14421f412d.tar.xz
nixpkgs-20f18c7d16f31addc5e874d1ca809d14421f412d.tar.zst
nixpkgs-20f18c7d16f31addc5e874d1ca809d14421f412d.zip
duplicati: init at 2.0.3.3
-rw-r--r--maintainers/maintainer-list.nix5
-rw-r--r--pkgs/tools/backup/duplicati/default.nix37
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 44 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index f881f07e5b2..e548c7e5001 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -2639,6 +2639,11 @@
     github = "nthorne";
     name = "Niklas Thörne";
   };
+  nyanloutre = {
+    email = "paul@nyanlout.re";
+    github = "nyanloutre";
+    name = "Paul Trehiou";
+  };
   nyarly = {
     email = "nyarly@gmail.com";
     github = "nyarly";
diff --git a/pkgs/tools/backup/duplicati/default.nix b/pkgs/tools/backup/duplicati/default.nix
new file mode 100644
index 00000000000..d36ef7ea64f
--- /dev/null
+++ b/pkgs/tools/backup/duplicati/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchzip, mono, sqlite, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "duplicati-${version}";
+  version = "2.0.3.3";
+  channel = "beta";
+  build_date = "2018-04-02";
+
+  src = fetchzip {
+    url = "https://github.com/duplicati/duplicati/releases/download/v${version}-${version}_${channel}_${build_date}/duplicati-${version}_${channel}_${build_date}.zip";
+    sha256 = "0hwdpsgrvm3gq648mg9g0z0rk49g71dd8r5i1a8w83pwdqv0hn9c";
+    stripRoot = false;
+  };
+
+  buildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    mkdir -p $out/{bin,share/${name}}
+    cp -r * $out/share/${name}
+    makeWrapper "${mono}/bin/mono" $out/bin/duplicati-cli \
+      --add-flags "$out/share/${name}/Duplicati.CommandLine.exe" \
+      --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
+          sqlite ]}
+    makeWrapper "${mono}/bin/mono" $out/bin/duplicati-server \
+      --add-flags "$out/share/${name}/Duplicati.Server.exe" \
+      --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
+          sqlite ]}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers";
+    homepage = https://www.duplicati.com/;
+    license = licenses.lgpl21;
+    maintainers = with maintainers; [ nyanloutre ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 73800bf0f62..fcf4c28274a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2035,6 +2035,8 @@ with pkgs;
 
   duo-unix = callPackage ../tools/security/duo-unix { };
 
+  duplicati = callPackage ../tools/backup/duplicati { };
+
   duplicity = callPackage ../tools/backup/duplicity {
     gnupg = gnupg1;
   };