2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
|
2021-01-07 05:03:42 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bupstash";
|
|
|
|
version = "0.6.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrewchambers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "013k8pr4865f5rp66fjf3a8069kmd29brxv0l20z571gy2kxs5p9";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "17cdi93q71wsqqfkpz6mxcaqqhqclsbns0g1r9mni39nikw7amv1";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ronn pkg-config installShellFiles ];
|
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
RUBYOPT="-KU -E utf-8:utf-8" ronn doc/man/*.md
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|