Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
34 lines
914 B
Nix
34 lines
914 B
Nix
{ lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bupstash";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andrewchambers";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Ekjxna3u+71s1q7jjXp7PxYUQIfbp2E+jAqKGuszU6g=";
|
|
};
|
|
|
|
cargoHash = "sha256-hkGmE7WseEjMxmmPyR8C4osbdbpIt8qG9sfVGuC4d84=";
|
|
|
|
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 ];
|
|
mainProgram = "bupstash";
|
|
};
|
|
}
|