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";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "0.5.2";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KnightOS";
|
|
|
|
repo = "z80e";
|
|
|
|
rev = version;
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "0gdv17ynjd6zf3i4hkimd89xkrd8kxas3bf8d5sq54fdicapvkzc";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake knightos-scas ];
|
|
|
|
|
|
|
|
buildInputs = [ readline SDL2 ];
|
|
|
|
|
|
|
|
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/";
|
|
|
|
description = "A Z80 calculator emulator and debugger";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|