9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitHub {
14 owner = "X16Community";
16 rev = "r${finalAttrs.version}";
17 hash = "sha256-MXt839wpPdGVFgf1CAqfmWEP2Ws+5uUFOI14vAdUTvk=";
27 patchShebangs findsymbols scripts/
28 substituteInPlace Makefile \
29 --replace-fail '/bin/echo' 'echo'
34 makeFlags = [ "PRERELEASE_VERSION=${finalAttrs.version}" ];
39 install -Dm 444 -t $out/share/x16-rom/ build/x16/rom.bin
40 install -Dm 444 -t $out/share/doc/x16-rom/ README.md
46 # upstream project recommends emulator and rom to be synchronized; passing
47 # through the version is useful to ensure this
48 inherit (finalAttrs) version;
52 homepage = "https://github.com/X16Community/x16-rom";
53 description = "ROM file for CommanderX16 8-bit computer";
54 license = lib.licenses.bsd2;
55 maintainers = with lib.maintainers; [ AndersonTorres ];
56 inherit (cc65.meta) platforms;
57 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;