| Matthias Andreas Benkard | da55c5d | 2021-08-17 21:13:57 +0200 | [diff] [blame] | 1 | { lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }: |
| 2 | |
| 3 | rustPlatform.buildRustPackage rec { |
| 4 | pname = "bupstash"; |
| Matthias Andreas Benkard | fcedcf0 | 2024-09-01 21:07:46 +0200 | [diff] [blame^] | 5 | version = "0.12.0"; |
| Matthias Andreas Benkard | da55c5d | 2021-08-17 21:13:57 +0200 | [diff] [blame] | 6 | |
| 7 | src = fetchFromGitHub { |
| 8 | owner = "andrewchambers"; |
| 9 | repo = pname; |
| 10 | rev = "v${version}"; |
| Matthias Andreas Benkard | fcedcf0 | 2024-09-01 21:07:46 +0200 | [diff] [blame^] | 11 | sha256 = "sha256-Ekjxna3u+71s1q7jjXp7PxYUQIfbp2E+jAqKGuszU6g" /*lib.fakeSha256*/; |
| Matthias Andreas Benkard | da55c5d | 2021-08-17 21:13:57 +0200 | [diff] [blame] | 12 | }; |
| 13 | |
| Matthias Andreas Benkard | fcedcf0 | 2024-09-01 21:07:46 +0200 | [diff] [blame^] | 14 | cargoSha256 = "sha256-hkGmE7WseEjMxmmPyR8C4osbdbpIt8qG9sfVGuC4d84" /*lib.fakeSha256*/; |
| Matthias Andreas Benkard | da55c5d | 2021-08-17 21:13:57 +0200 | [diff] [blame] | 15 | |
| 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 | |