9 stdenv.mkDerivation (finalAttrs: {
10 pname = "x16-emulator";
13 src = fetchFromGitHub {
14 owner = "X16Community";
15 repo = "x16-emulator";
16 rev = "r${finalAttrs.version}";
17 hash = "sha256-E4TosRoORCWLotOIXROP9oqwqo1IRSa6X13GnmuxE9A=";
21 substituteInPlace Makefile \
22 --replace-fail '/bin/echo' 'echo'
35 install -Dm 755 -t $out/bin/ x16emu
36 install -Dm 444 -t $out/share/doc/x16-emulator/ README.md
42 # upstream project recommends emulator and rom to be synchronized; passing
43 # through the version is useful to ensure this
44 inherit (finalAttrs) version;
45 emulator = finalAttrs.finalPackage;
46 rom = callPackage ./rom.nix { };
47 run = (callPackage ./run.nix { }){
48 inherit (finalAttrs.finalPackage) emulator rom;
53 homepage = "https://cx16forum.com/";
54 description = "Official emulator of CommanderX16 8-bit computer";
55 changelog = "https://github.com/X16Community/x16-emulator/blob/r${finalAttrs.version}/RELEASES.md";
56 license = lib.licenses.bsd2;
57 maintainers = with lib.maintainers; [ AndersonTorres ];
58 mainProgram = "x16emu";
59 inherit (SDL2.meta) platforms;
60 broken = stdenv.hostPlatform.isAarch64; # ofborg fails to compile it