2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
|
2021-01-15 22:18:51 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bupstash";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.12.0";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrewchambers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-Ekjxna3u+71s1q7jjXp7PxYUQIfbp2E+jAqKGuszU6g=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
cargoSha256 = "sha256-hkGmE7WseEjMxmmPyR8C4osbdbpIt8qG9sfVGuC4d84=";
|
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;
|
2022-06-16 17:23:12 +00: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-15 22:18:51 +00:00
|
|
|
maintainers = with maintainers; [ andrewchambers ];
|
|
|
|
};
|
|
|
|
}
|