nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "nsh";
9 version = "0.4.2";
10
11 src = fetchFromGitHub {
12 owner = "nuta";
13 repo = "nsh";
14 rev = "v${version}";
15 sha256 = "1479wv8h5l2b0cwp27vpybq50nyvszhjxmn76n2bz3fchr0lrcbp";
16 };
17
18 cargoHash = "sha256-kbHNFVu5OIg/eKefhsYRGvlXFduB0aBVflPV9hkM4Ec=";
19
20 doCheck = false;
21
22 meta = {
23 description = "Command-line shell like fish, but POSIX compatible";
24 mainProgram = "nsh";
25 homepage = "https://github.com/nuta/nsh";
26 changelog = "https://github.com/nuta/nsh/raw/v${version}/docs/changelog.md";
27 license = [
28 lib.licenses.cc0 # or
29 lib.licenses.mit
30 ];
31 maintainers = with lib.maintainers; [ cafkafk ];
32 };
33
34 passthru = {
35 shellPath = "/bin/nsh";
36 };
37}