2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchzip, mono, sqlite, makeWrapper }:
|
2018-04-07 19:42:38 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "duplicati";
|
2020-05-29 13:59:48 +02:00
|
|
|
version = "2.0.5.1";
|
2018-04-07 19:42:38 +02:00
|
|
|
channel = "beta";
|
2020-05-29 13:59:48 +02:00
|
|
|
build_date = "2020-01-18";
|
2018-04-07 19:42:38 +02:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/duplicati/duplicati/releases/download/v${version}-${version}_${channel}_${build_date}/duplicati-${version}_${channel}_${build_date}.zip";
|
2020-05-29 13:59:48 +02:00
|
|
|
sha256 = "1k3gfwcw7snxkqn4lf9rx1vzradpyq5vc48pwvaa8wwqnlykiimw";
|
2018-04-07 19:42:38 +02:00
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-15 14:41:18 +02:00
|
|
|
mkdir -p $out/{bin,share/${pname}-${version}}
|
|
|
|
cp -r * $out/share/${pname}-${version}
|
2018-04-07 19:42:38 +02:00
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/duplicati-cli \
|
2019-08-15 14:41:18 +02:00
|
|
|
--add-flags "$out/share/${pname}-${version}/Duplicati.CommandLine.exe" \
|
2021-01-15 10:19:50 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
|
2018-04-07 19:42:38 +02:00
|
|
|
sqlite ]}
|
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/duplicati-server \
|
2019-08-15 14:41:18 +02:00
|
|
|
--add-flags "$out/share/${pname}-${version}/Duplicati.Server.exe" \
|
2021-01-15 10:19:50 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
|
2018-04-07 19:42:38 +02:00
|
|
|
sqlite ]}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-04-07 19:42:38 +02:00
|
|
|
description = "A free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.duplicati.com/";
|
2018-04-07 19:42:38 +02:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|