2024-09-06 13:02:12 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchzip,
|
|
|
|
mono,
|
|
|
|
sqlite,
|
|
|
|
makeWrapper,
|
|
|
|
}:
|
2018-04-07 17:42:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "duplicati";
|
2024-09-06 13:02:12 +00:00
|
|
|
version = "2.0.8.1";
|
2018-04-07 17:42:38 +00:00
|
|
|
channel = "beta";
|
2024-09-06 13:02:12 +00:00
|
|
|
build_date = "2024-05-07";
|
2018-04-07 17:42:38 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/duplicati/duplicati/releases/download/v${version}-${version}_${channel}_${build_date}/duplicati-${version}_${channel}_${build_date}.zip";
|
2024-09-06 13:02:12 +00:00
|
|
|
hash = "sha256-LmW6yGutxP33ghFqyOLKrGDNCQdr8DDFn/IHigsLpzA=";
|
2018-04-07 17:42:38 +00:00
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-04-07 17:42:38 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-15 12:41:18 +00:00
|
|
|
mkdir -p $out/{bin,share/${pname}-${version}}
|
|
|
|
cp -r * $out/share/${pname}-${version}
|
2018-04-07 17:42:38 +00:00
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/duplicati-cli \
|
2019-08-15 12:41:18 +00:00
|
|
|
--add-flags "$out/share/${pname}-${version}/Duplicati.CommandLine.exe" \
|
2024-09-06 13:02:12 +00:00
|
|
|
--prefix LD_LIBRARY_PATH : ${
|
|
|
|
lib.makeLibraryPath [
|
|
|
|
sqlite
|
|
|
|
]
|
|
|
|
}
|
2018-04-07 17:42:38 +00:00
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/duplicati-server \
|
2019-08-15 12:41:18 +00:00
|
|
|
--add-flags "$out/share/${pname}-${version}/Duplicati.Server.exe" \
|
2024-09-06 13:02:12 +00:00
|
|
|
--prefix LD_LIBRARY_PATH : ${
|
|
|
|
lib.makeLibraryPath [
|
|
|
|
sqlite
|
|
|
|
]
|
|
|
|
}
|
2018-04-07 17:42:38 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-07 17:42:38 +00:00
|
|
|
description = "Free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.duplicati.com/";
|
2018-04-07 17:42:38 +00:00
|
|
|
license = licenses.lgpl21;
|
2024-09-08 12:49:49 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
nyanloutre
|
|
|
|
bot-wxt1221
|
|
|
|
];
|
2024-09-08 12:50:24 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2018-04-07 17:42:38 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|