about summary refs log tree commit diff
path: root/nixpkgs/pkgs/shells/ion/default.nix
blob: f20c80810a0bc8f25123c54cca322464d5bae3b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, libiconv }:

rustPlatform.buildRustPackage rec {
  pname = "ion";
  version = "unstable-2021-05-10";

  src = fetchFromGitHub {
    owner = "redox-os";
    repo = "ion";
    rev = "1170b84587bbad260a3ecac8e249a216cb1fd5e9";
    sha256 = "sha256-lI1GwA3XerRJaC/Z8vTZc6GzRDLjv3w768C+Ui6Q+3Q=";
  };

  cargoSha256 = "sha256-hURpgxc99iIMtzIlR6Kbfqcbu1uYLDHnfVLqgmMbvFA=";

  meta = with lib; {
    description = "Modern system shell with simple (and powerful) syntax";
    homepage = "https://gitlab.redox-os.org/redox-os/ion";
    license = licenses.mit;
    maintainers = with maintainers; [ dywedir ];
  };

  buildInputs = lib.optional stdenv.hostPlatform.isDarwin [
    Security
    libiconv
  ];

  doCheck = !stdenv.hostPlatform.isDarwin;

  passthru = {
    shellPath = "/bin/ion";
  };
}