1{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, libiconv }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "ion";
5 version = "unstable-2021-05-10";
6
7 src = fetchFromGitHub {
8 owner = "redox-os";
9 repo = "ion";
10 rev = "1170b84587bbad260a3ecac8e249a216cb1fd5e9";
11 sha256 = "sha256-lI1GwA3XerRJaC/Z8vTZc6GzRDLjv3w768C+Ui6Q+3Q=";
12 };
13
14 cargoSha256 = "sha256-hURpgxc99iIMtzIlR6Kbfqcbu1uYLDHnfVLqgmMbvFA=";
15
16 meta = with lib; {
17 description = "Modern system shell with simple (and powerful) syntax";
18 homepage = "https://gitlab.redox-os.org/redox-os/ion";
19 license = licenses.mit;
20 maintainers = with maintainers; [ dywedir ];
21 };
22
23 buildInputs = lib.optional stdenv.hostPlatform.isDarwin [
24 Security
25 libiconv
26 ];
27
28 doCheck = !stdenv.hostPlatform.isDarwin;
29
30 passthru = {
31 shellPath = "/bin/ion";
32 };
33}