Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }: 2rustPlatform.buildRustPackage rec { 3 pname = "bupstash"; 4 version = "0.12.0"; 5 6 src = fetchFromGitHub { 7 owner = "andrewchambers"; 8 repo = pname; 9 rev = "v${version}"; 10 sha256 = "sha256-Ekjxna3u+71s1q7jjXp7PxYUQIfbp2E+jAqKGuszU6g="; 11 }; 12 13 cargoSha256 = "sha256-hkGmE7WseEjMxmmPyR8C4osbdbpIt8qG9sfVGuC4d84="; 14 15 nativeBuildInputs = [ ronn pkg-config installShellFiles ]; 16 buildInputs = [ libsodium ]; 17 18 postBuild = '' 19 RUBYOPT="-KU -E utf-8:utf-8" ronn -r doc/man/*.md 20 ''; 21 22 postInstall = '' 23 installManPage doc/man/*.[1-9] 24 ''; 25 26 meta = with lib; { 27 description = "Easy and efficient encrypted backups"; 28 homepage = "https://bupstash.io"; 29 license = licenses.mit; 30 platforms = platforms.unix; 31 maintainers = with maintainers; [ andrewchambers ]; 32 }; 33}