2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
|
2021-01-15 22:18:51 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bupstash";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "0.8.0";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrewchambers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "sha256-zZHJlC0OICIc3G825t7GrZwdmkaaLQKzX2IwkKigkV4=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
cargoSha256 = "sha256-KVeIF6x+gpb8vkqCtZptF5EX9G1Zv6q8L6tskN6HziM=";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ ronn pkg-config installShellFiles ];
|
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
|
|
|
|
postBuild = ''
|
2021-03-20 04:20:00 +00:00
|
|
|
RUBYOPT="-KU -E utf-8:utf-8" ronn -r doc/man/*.md
|
2021-01-15 22:18:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage doc/man/*.[1-9]
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Easy and efficient encrypted backups";
|
|
|
|
homepage = "https://bupstash.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ andrewchambers ];
|
|
|
|
};
|
|
|
|
}
|