diff --git a/pkgs/development/tools/knightos/z80e/default.nix b/pkgs/development/tools/knightos/z80e/default.nix new file mode 100644 index 000000000000..6aad8f687e70 --- /dev/null +++ b/pkgs/development/tools/knightos/z80e/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, cmake, knightos-scas, readline, SDL2 }: + +stdenv.mkDerivation rec { + pname = "z80e"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "KnightOS"; + repo = "z80e"; + rev = version; + sha256 = "18nnip6nv1pq19bxgd07fv7ci3c5yj8d9cip97a4zsfab7bmbq6k"; + }; + + nativeBuildInputs = [ cmake knightos-scas ]; + + buildInputs = [ readline SDL2 ]; + + cmakeFlags = [ "-Denable-sdl=YES" ]; + + meta = with stdenv.lib; { + homepage = "https://knightos.org/"; + description = "A Z80 calculator emulator and debugger"; + license = licenses.mit; + maintainers = with maintainers; [ siraben ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f3b4ebdcb940..8862024fb8d2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9338,6 +9338,8 @@ in knightos-scas = callPackage ../development/tools/knightos/scas { }; + knightos-z80e = callPackage ../development/tools/knightos/z80e { }; + kotlin = callPackage ../development/compilers/kotlin { }; lazarus = callPackage ../development/compilers/fpc/lazarus.nix {