2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, knightos-scas, readline, SDL2 }:
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "z80e";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "0.5.3";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KnightOS";
|
|
|
|
repo = "z80e";
|
|
|
|
rev = version;
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-FQMYHxKxHEP+x98JbGyjaM0OL8QK/p3epsAWvQkv6bc=";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-10-19 00:13:06 +00:00
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
buildInputs = [ readline SDL2 knightos-scas ];
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-Denable-sdl=YES" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
homepage = "https://knightos.org/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Z80 calculator emulator and debugger";
|
2020-10-19 00:13:06 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|