Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "rusty-bash"; 9 version = "0.8.5"; 10 11 src = fetchFromGitHub { 12 owner = "shellgei"; 13 repo = "rusty_bash"; 14 tag = "v${version}"; 15 hash = "sha256-hUMkgsWlGSqOnYdFhDGBWbc13oAssklbuJAg8NkY398="; 16 }; 17 18 postPatch = '' 19 cp ${./Cargo.lock} ./Cargo.lock 20 ''; 21 22 cargoLock.lockFile = ./Cargo.lock; 23 24 passthru.shellPath = "/bin/sush"; 25 26 meta = { 27 description = "Bash written with Rust, a.k.a. sushi shell"; 28 homepage = "https://github.com/shellgei/rusty_bash"; 29 license = lib.licenses.bsd3; 30 mainProgram = "sush"; 31 maintainers = with lib.maintainers; [ aleksana ]; 32 }; 33}