2022-05-21 15:25:16 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
|
2021-01-07 05:03:42 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bupstash";
|
2022-03-17 05:06:37 +01:00
|
|
|
version = "0.11.0";
|
2021-01-07 05:03:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrewchambers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-17 05:06:37 +01:00
|
|
|
sha256 = "sha256-9yWQQ8uzDkN3Pi2OiEn+oEazc3nH53dF2GswBCu8d3c=";
|
2021-01-07 05:03:42 +01:00
|
|
|
};
|
|
|
|
|
2022-03-17 05:06:37 +01:00
|
|
|
cargoSha256 = "sha256-JAclSUFuQk768cgDEvG1rxux2xBGHl1d/NAoxw161YU=";
|
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;
|
2022-05-21 15:25:16 +02:00
|
|
|
# = note: Undefined symbols for architecture x86_64:
|
|
|
|
# "_utimensat", referenced from:
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/101229
|
|
|
|
broken = (stdenv.isDarwin && stdenv.isx86_64);
|
2021-01-07 05:03:42 +01:00
|
|
|
maintainers = with maintainers; [ andrewchambers ];
|
|
|
|
};
|
|
|
|
}
|