1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "nsh";
5 version = "0.4.2";
6
7 src = fetchFromGitHub {
8 owner = "nuta";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1479wv8h5l2b0cwp27vpybq50nyvszhjxmn76n2bz3fchr0lrcbp";
12 };
13
14 cargoSha256 = "1kxjr4ymns95g6jz94107nqmd71m2xh8k19gcsy08650gjrn5cz3";
15
16 doCheck = false;
17
18 meta = with lib; {
19 description = "A command-line shell like fish, but POSIX compatible";
20 homepage = "https://github.com/nuta/nsh";
21 changelog = "https://github.com/nuta/nsh/raw/v${version}/docs/changelog.md";
22 license = [ licenses.cc0 /* or */ licenses.mit ];
23 maintainers = [ maintainers.marsam ];
24 };
25
26 passthru = {
27 shellPath = "/bin/nsh";
28 };
29}