2021-05-19 03:17:47 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, libiconv }:
|
2017-07-09 01:23:53 +01:00
|
|
|
|
2020-03-27 23:17:03 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "ion";
|
2021-05-19 03:17:47 +01:00
|
|
|
version = "unstable-2021-05-10";
|
2017-07-09 01:23:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redox-os";
|
|
|
|
repo = "ion";
|
2021-05-19 03:17:47 +01:00
|
|
|
rev = "1170b84587bbad260a3ecac8e249a216cb1fd5e9";
|
|
|
|
sha256 = "sha256-lI1GwA3XerRJaC/Z8vTZc6GzRDLjv3w768C+Ui6Q+3Q=";
|
2017-07-09 01:23:53 +01:00
|
|
|
};
|
|
|
|
|
2021-05-19 03:17:47 +01:00
|
|
|
cargoSha256 = "sha256-hURpgxc99iIMtzIlR6Kbfqcbu1uYLDHnfVLqgmMbvFA=";
|
2017-07-09 01:23:53 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-09 01:23:53 +01:00
|
|
|
description = "Modern system shell with simple (and powerful) syntax";
|
2020-03-27 23:17:03 +00:00
|
|
|
homepage = "https://gitlab.redox-os.org/redox-os/ion";
|
2017-07-09 01:23:53 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dywedir ];
|
|
|
|
};
|
2019-12-31 05:40:07 +00:00
|
|
|
|
2022-10-06 17:38:53 +01:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2020-11-29 20:35:14 +00:00
|
|
|
Security
|
2021-05-19 03:17:47 +01:00
|
|
|
libiconv
|
2020-11-29 20:35:14 +00:00
|
|
|
];
|
|
|
|
|
2021-05-19 03:17:47 +01:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
|
2019-12-31 05:40:07 +00:00
|
|
|
passthru = {
|
2020-03-07 20:17:27 +00:00
|
|
|
shellPath = "/bin/ion";
|
2019-12-31 05:40:07 +00:00
|
|
|
};
|
2017-07-09 01:23:53 +01:00
|
|
|
}
|