2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ion";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "unstable-2021-05-10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redox-os";
|
|
|
|
repo = "ion";
|
2021-05-28 09:39:13 +00:00
|
|
|
rev = "1170b84587bbad260a3ecac8e249a216cb1fd5e9";
|
|
|
|
sha256 = "sha256-lI1GwA3XerRJaC/Z8vTZc6GzRDLjv3w768C+Ui6Q+3Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "sha256-hURpgxc99iIMtzIlR6Kbfqcbu1uYLDHnfVLqgmMbvFA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin [
|
2020-12-29 15:07:52 +00:00
|
|
|
Security
|
2021-05-28 09:39:13 +00:00
|
|
|
libiconv
|
2020-12-29 15:07:52 +00:00
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/ion";
|
|
|
|
};
|
|
|
|
}
|