nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 30 lines 774 B view raw
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 cargoHash = "sha256-47Nis3ygGAS8Zi+FiWAXNZxWsT0gkPSleSVpWz3Jss8="; 15 16 doCheck = false; 17 18 meta = with lib; { 19 description = "Command-line shell like fish, but POSIX compatible"; 20 mainProgram = "nsh"; 21 homepage = "https://github.com/nuta/nsh"; 22 changelog = "https://github.com/nuta/nsh/raw/v${version}/docs/changelog.md"; 23 license = [ licenses.cc0 /* or */ licenses.mit ]; 24 maintainers = with maintainers; [ cafkafk ]; 25 }; 26 27 passthru = { 28 shellPath = "/bin/nsh"; 29 }; 30}