Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / shells / ion / default.nix
blob0440a79e760f687fa35a77363188cfcf58d63e66
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "ion";
10   version = "unstable-2022-11-27";
12   src = fetchFromGitHub {
13     owner = "redox-os";
14     repo = "ion";
15     rev = "3bb8966fc99ba223033e1e02b0a6d50fc25cbef4";
16     sha256 = "sha256-6KW/YkMQFeGb1i+1YdADZRW89UruHsfPhMq9Cvxjl/4=";
17   };
19   cargoLock = {
20     lockFile = ./Cargo.lock;
21     outputHashes = {
22       "calculate-0.7.0" = "sha256-wUmi8XLgEMgECeaCM0r1KxJ+oTd47QozgFBANKSwt24=";
23       "decimal-2.1.0" = "sha256-s5mDRCkaDBUdaywYEJzTfe7qH25sG5UUo5iVmPE+zrw=";
24       "nix-0.23.1" = "sha256-yWJYrQt9piJHhqBkH/hn9dsXR8oqzl0RKPrzx9fvqlw=";
25       "object-pool-0.5.3" = "sha256-LWP0b62sk2dcqnQEEvLmZVvWSVLJ722yH/zIIPL93W4=";
26       "redox_liner-0.5.1" = "sha256-OT9E4AwQgm5NngcCtcno1VKhkS4d8Eq/l+8aYHvXtTY=";
27       "small-0.1.0" = "sha256-QIzEfFc0EDEllf+YxVyV7j/PvC7nVWiK0YYBoZBQZ3Q=";
28       "termion-1.5.6" = "sha256-NTY/2SbqkSyslnN5Xg6lrQ0MTrOhTMHqN+XXqN6Nkr8=";
29     };
30   };
32   patches = [
33     # remove git revision from the build script to fix build
34     ./build-script.patch
35   ];
37   buildInputs = lib.optionals stdenv.isDarwin [
38     darwin.apple_sdk.frameworks.Security
39   ];
41   checkFlags = lib.optionals stdenv.isDarwin [
42     # test assumes linux
43     "--skip=binary::completer::tests::filename_completion"
44   ];
46   passthru = {
47     shellPath = "/bin/ion";
48   };
50   meta = with lib; {
51     description = "Modern system shell with simple (and powerful) syntax";
52     mainProgram = "ion";
53     homepage = "https://gitlab.redox-os.org/redox-os/ion";
54     license = licenses.mit;
55     maintainers = with maintainers; [ dywedir ];
56   };