1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/tools/backup/bupstash/default.nix

34 lines
885 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
2021-01-07 04:03:42 +00:00
rustPlatform.buildRustPackage rec {
pname = "bupstash";
2021-06-01 07:25:52 +01:00
version = "0.9.1";
2021-01-07 04:03:42 +00:00
src = fetchFromGitHub {
owner = "andrewchambers";
repo = pname;
rev = "v${version}";
2021-06-01 07:25:52 +01:00
sha256 = "sha256-DzRGhdUxfBW6iazpCHlQ9J8IL10FVxhac8kx6yBSGNk=";
2021-01-07 04:03:42 +00:00
};
2021-06-01 07:25:52 +01:00
cargoSha256 = "sha256-IKk4VsO/oH4nC6F1W+JA3Agl7oXXNJ7zpP2PYpPLREU=";
2021-01-07 04:03:42 +00:00
nativeBuildInputs = [ ronn pkg-config installShellFiles ];
buildInputs = [ libsodium ];
postBuild = ''
2021-03-24 11:31:13 +00:00
RUBYOPT="-KU -E utf-8:utf-8" ronn -r doc/man/*.md
2021-01-07 04:03:42 +00:00
'';
postInstall = ''
installManPage doc/man/*.[1-9]
'';
2021-01-15 09:19:50 +00:00
meta = with lib; {
2021-01-07 04:03:42 +00:00
description = "Easy and efficient encrypted backups";
homepage = "https://bupstash.io";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ andrewchambers ];
};
}