2189cff663
GitOrigin-RevId: 1fe6ed37fd9beb92afe90671c0c2a662a03463dd
33 lines
885 B
Nix
33 lines
885 B
Nix
{ lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bupstash";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andrewchambers";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-uA5XEG9nvqsXg34bqw8k4Rjk5F9bPFSk1HQ4Bv6Ar+I=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-4r+Ioh6Waoy/7LVF3CPz18c2bCRYym5T4za1GSKw7WQ=";
|
|
|
|
nativeBuildInputs = [ ronn pkg-config installShellFiles ];
|
|
buildInputs = [ libsodium ];
|
|
|
|
postBuild = ''
|
|
RUBYOPT="-KU -E utf-8:utf-8" ronn -r doc/man/*.md
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|