nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage (finalAttrs: {
8 pname = "rusty-bash";
9 version = "1.2.2";
10
11 src = fetchFromGitHub {
12 owner = "shellgei";
13 repo = "rusty_bash";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-WBV0wF7SKhOKAo+F1IImpPIgLvo9GYkqWrb2GluUtdA=";
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})