blob: 9ab2e1b55f429a0b4b896429bb68eb03aa972b77 [file] [log] [blame]
Matthias Andreas Benkardda55c5d2021-08-17 21:13:57 +02001{ lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "bupstash";
Matthias Andreas Benkardfcedcf02024-09-01 21:07:46 +02005 version = "0.12.0";
Matthias Andreas Benkardda55c5d2021-08-17 21:13:57 +02006
7 src = fetchFromGitHub {
8 owner = "andrewchambers";
9 repo = pname;
10 rev = "v${version}";
Matthias Andreas Benkardfcedcf02024-09-01 21:07:46 +020011 sha256 = "sha256-Ekjxna3u+71s1q7jjXp7PxYUQIfbp2E+jAqKGuszU6g" /*lib.fakeSha256*/;
Matthias Andreas Benkardda55c5d2021-08-17 21:13:57 +020012 };
13
Matthias Andreas Benkardfcedcf02024-09-01 21:07:46 +020014 cargoSha256 = "sha256-hkGmE7WseEjMxmmPyR8C4osbdbpIt8qG9sfVGuC4d84" /*lib.fakeSha256*/;
Matthias Andreas Benkardda55c5d2021-08-17 21:13:57 +020015
16 nativeBuildInputs = [ ronn pkg-config installShellFiles ];
17 buildInputs = [ libsodium ];
18
19 postBuild = ''
20 RUBYOPT="-KU -E utf-8:utf-8" ronn -r doc/man/*.md
21 '';
22
23 postInstall = ''
24 installManPage doc/man/*.[1-9]
25 '';
26
27 meta = with lib; {
28 description = "Easy and efficient encrypted backups";
29 homepage = "https://bupstash.io";
30 license = licenses.mit;
31 platforms = platforms.unix;
32 maintainers = with maintainers; [ andrewchambers ];
33 };
34}
35