2023-01-19 01:48:15 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
2017-07-09 02:23:53 +02:00
|
|
|
|
2020-03-28 00:17:03 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "ion";
|
2023-01-19 01:48:15 +01:00
|
|
|
version = "unstable-2022-11-27";
|
2017-07-09 02:23:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redox-os";
|
|
|
|
repo = "ion";
|
2023-01-19 01:48:15 +01:00
|
|
|
rev = "3bb8966fc99ba223033e1e02b0a6d50fc25cbef4";
|
|
|
|
sha256 = "sha256-6KW/YkMQFeGb1i+1YdADZRW89UruHsfPhMq9Cvxjl/4=";
|
2017-07-09 02:23:53 +02:00
|
|
|
};
|
|
|
|
|
2023-03-26 00:16:46 +01:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"calculate-0.7.0" = "sha256-wUmi8XLgEMgECeaCM0r1KxJ+oTd47QozgFBANKSwt24=";
|
|
|
|
"decimal-2.1.0" = "sha256-s5mDRCkaDBUdaywYEJzTfe7qH25sG5UUo5iVmPE+zrw=";
|
|
|
|
"nix-0.23.1" = "sha256-yWJYrQt9piJHhqBkH/hn9dsXR8oqzl0RKPrzx9fvqlw=";
|
|
|
|
"object-pool-0.5.3" = "sha256-LWP0b62sk2dcqnQEEvLmZVvWSVLJ722yH/zIIPL93W4=";
|
|
|
|
"redox_liner-0.5.1" = "sha256-OT9E4AwQgm5NngcCtcno1VKhkS4d8Eq/l+8aYHvXtTY=";
|
|
|
|
"small-0.1.0" = "sha256-QIzEfFc0EDEllf+YxVyV7j/PvC7nVWiK0YYBoZBQZ3Q=";
|
|
|
|
"termion-1.5.6" = "sha256-NTY/2SbqkSyslnN5Xg6lrQ0MTrOhTMHqN+XXqN6Nkr8=";
|
|
|
|
};
|
|
|
|
};
|
2017-07-09 02:23:53 +02:00
|
|
|
|
2023-01-19 01:48:15 +01:00
|
|
|
patches = [
|
|
|
|
# remove git revision from the build script to fix build
|
|
|
|
./build-script.patch
|
|
|
|
];
|
2019-12-31 06:40:07 +01:00
|
|
|
|
2023-01-19 01:48:15 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
2020-11-29 21:35:14 +01:00
|
|
|
];
|
|
|
|
|
2023-01-19 01:48:15 +01:00
|
|
|
checkFlags = lib.optionals stdenv.isDarwin [
|
|
|
|
# test assumes linux
|
|
|
|
"--skip=binary::completer::tests::filename_completion"
|
|
|
|
];
|
2021-05-19 04:17:47 +02:00
|
|
|
|
2019-12-31 06:40:07 +01:00
|
|
|
passthru = {
|
2020-03-07 21:17:27 +01:00
|
|
|
shellPath = "/bin/ion";
|
2019-12-31 06:40:07 +01:00
|
|
|
};
|
2023-01-19 01:48:15 +01: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 ];
|
|
|
|
};
|
2017-07-09 02:23:53 +02:00
|
|
|
}
|