2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ion";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "unstable-2022-11-27";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redox-os";
|
|
|
|
repo = "ion";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "3bb8966fc99ba223033e1e02b0a6d50fc25cbef4";
|
|
|
|
sha256 = "sha256-6KW/YkMQFeGb1i+1YdADZRW89UruHsfPhMq9Cvxjl/4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
cargoSha256 = "sha256-KLKPnj4SmAuspjMPAGLJ8Yy9SxAi6FvGE/FIF58lAH8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
patches = [
|
|
|
|
# remove git revision from the build script to fix build
|
|
|
|
./build-script.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
2020-12-29 15:07:52 +00:00
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
checkFlags = lib.optionals stdenv.isDarwin [
|
|
|
|
# test assumes linux
|
|
|
|
"--skip=binary::completer::tests::filename_completion"
|
|
|
|
];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/ion";
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|