diff --git a/flake.nix b/flake.nix index 869ffc9..478e9ad 100644 --- a/flake.nix +++ b/flake.nix @@ -64,45 +64,6 @@ ]; }; - packages.am-kernels = pkgs.stdenv.mkDerivation rec { - pname = "am-kernels"; - version = "2024.02.18"; - - buildInputs = with pkgs; [ - SDL2 - ]; - - src = pkgs.fetchFromGitHub { - owner = "NJU-ProjectN"; - repo = "am-kernels"; - rev = "bb725d6f8223dd7de831c3b692e8c4531e9d01af"; - hash = "sha256-ZHdrw28TN8cMvhhzM469OV7cp0Yp+8yao855HP4+P4A="; - }; - - AM_HOME = pkgs.fetchFromGitHub { - owner = "xinyangli"; - repo = "abstract-machine"; - rev = "788595aac61c6b2f3b78ca8aa7d08dc33911bca4"; - hash = "sha256-YvWHIBP9tz3HL2TyibftvvQrpkWUDPnviCF4oyLmdjg="; - }; - - ARCH = "native"; - - patchPhase = '' - sed -i 's/\/bin\/echo/echo/' tests/cpu-tests/Makefile - ''; - - buildPhase = '' - AS=$CC make -C tests/cpu-tests BUILD_DIR=$(pwd)/build ARCH=$ARCH - ''; - - installPhase = '' - mkdir -p $out/bin - rm -r build/native/src build/native/tests - cp -r build/native/* $out/bin/ - ''; - }; - packages.am-kernels-rv32 = crossPkgs.stdenv.mkDerivation rec { pname = "am-kernels-rv32"; version = "2024.02.18"; @@ -157,16 +118,6 @@ self.packages.${system}.nemu ]; }; - - devShells.abstract-machine-shell = pkgs.mkShell { - packages = with pkgs; [ - clang-tools - cmake - check - pkg-config - SDL2 - ]; - }; } ); }