nixpkgs/pkgs/by-name/du/duplicati/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.5 KiB
Nix
Raw Permalink Normal View History

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 {
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;
};
nativeBuildInputs = [ makeWrapper ];
2018-04-07 17:42:38 +00:00
installPhase = ''
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 \
--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 \
--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
'';
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";
homepage = "https://www.duplicati.com/";
2018-04-07 17:42:38 +00:00
license = licenses.lgpl21;
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;
};
}