2023-07-12 18:06:56 +02:00
|
|
|
{ lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
|
2021-01-07 05:03:42 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bupstash";
|
2022-11-07 18:45:41 +01:00
|
|
|
version = "0.12.0";
|
2021-01-07 05:03:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrewchambers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-07 18:45:41 +01:00
|
|
|
sha256 = "sha256-Ekjxna3u+71s1q7jjXp7PxYUQIfbp2E+jAqKGuszU6g=";
|
2021-01-07 05:03:42 +01:00
|
|
|
};
|
|
|
|
|
2022-11-07 18:45:41 +01:00
|
|
|
cargoSha256 = "sha256-hkGmE7WseEjMxmmPyR8C4osbdbpIt8qG9sfVGuC4d84=";
|
2021-01-07 05:03:42 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ ronn pkg-config installShellFiles ];
|
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
|
|
|
|
postBuild = ''
|
2021-03-24 12:31:13 +01:00
|
|
|
RUBYOPT="-KU -E utf-8:utf-8" ronn -r doc/man/*.md
|
2021-01-07 05:03:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage doc/man/*.[1-9]
|
|
|
|
'';
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
meta = with lib; {
|
2021-01-07 05:03:42 +01:00
|
|
|
description = "Easy and efficient encrypted backups";
|
|
|
|
homepage = "https://bupstash.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ andrewchambers ];
|
2023-08-06 01:39:13 +02:00
|
|
|
mainProgram = "bupstash";
|
2021-01-07 05:03:42 +01:00
|
|
|
};
|
|
|
|
}
|