nixpkgs/pkgs/development/tools/knightos/z80e/default.nix
Ben Siraphob d03a9c48fb knightos: reduce build time dependency graph
Using asciidoc-full was unnecessary to build KnightOS-related packages
since only the a2x command matters. This change makes
cross-compilation far more noticeably faster. Closure size for each
package reduced from around 7 MB to 2 MB.
2021-02-17 19:21:22 +07:00

28 lines
671 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, knightos-scas, readline, SDL2 }:
stdenv.mkDerivation rec {
pname = "z80e";
version = "0.5.3";
src = fetchFromGitHub {
owner = "KnightOS";
repo = "z80e";
rev = version;
sha256 = "sha256-FQMYHxKxHEP+x98JbGyjaM0OL8QK/p3epsAWvQkv6bc=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ readline SDL2 knightos-scas ];
cmakeFlags = [ "-Denable-sdl=YES" ];
meta = with lib; {
homepage = "https://knightos.org/";
description = "A Z80 calculator emulator and debugger";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.unix;
};
}