lol

Merge pull request #111000 from AndersonTorres/new-commander-x16

Commander X16 emulator

authored by

Anderson Torres and committed by
GitHub
2520b036 e29bef4b

+92
+1
pkgs/development/compilers/cc65/default.nix
··· 53 53 ''; 54 54 license = licenses.zlib; 55 55 maintainers = with maintainers; [ AndersonTorres ]; 56 + platforms = with platforms; unix; 56 57 }; 57 58 }
+42
pkgs/misc/emulators/commander-x16/emulator.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , SDL2 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + pname = "x16-emulator"; 9 + version = "38"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "commanderx16"; 13 + repo = pname; 14 + rev = "r${version}"; 15 + sha256 = "WNRq/m97NpOBWIk6mtxBAKmkxCGWacWjXeOvIhBrkYE="; 16 + }; 17 + 18 + dontConfigure = true; 19 + 20 + buildInputs = [ SDL2 ]; 21 + 22 + installPhase = '' 23 + runHook preInstall 24 + install -D --mode 755 --target-directory $out/bin/ x16emu 25 + install -D --mode 444 --target-directory $out/share/doc/${pname} README.md 26 + runHook postInstall 27 + ''; 28 + 29 + meta = with lib; { 30 + homepage = "https://www.commanderx16.com/forum/index.php?/home/"; 31 + description = "The official emulator of CommanderX16 8-bit computer"; 32 + license = licenses.bsd2; 33 + maintainers = with maintainers; [ AndersonTorres ]; 34 + platforms = SDL2.meta.platforms; 35 + }; 36 + 37 + passthru = { 38 + # upstream project recommends emulator and rom synchronized; 39 + # passing through the version is useful to ensure this 40 + inherit version; 41 + }; 42 + }
+46
pkgs/misc/emulators/commander-x16/rom.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , cc65 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + pname = "x16-rom"; 9 + version = "38"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "commanderx16"; 13 + repo = pname; 14 + rev = "r${version}"; 15 + sha256 = "xaqF0ppB7I7ST8Uh3jPbC14uRAb/WH21tHlNeTvYpoI="; 16 + }; 17 + 18 + nativeBuildInputs = [ cc65 ]; 19 + 20 + postPatch = '' 21 + patchShebangs scripts/ 22 + ''; 23 + 24 + dontConfigure = true; 25 + 26 + installPhase = '' 27 + runHook preInstall 28 + install -D --mode 444 --target-directory $out/share/${pname} build/x16/rom.bin 29 + install -D --mode 444 --target-directory $out/share/doc/${pname} README.md 30 + runHook postInstall 31 + ''; 32 + 33 + meta = with lib; { 34 + homepage = "https://www.commanderx16.com/forum/index.php?/home/"; 35 + description = "ROM file for CommanderX16 8-bit computer"; 36 + license = licenses.bsd2; 37 + maintainers = with maintainers; [ AndersonTorres ]; 38 + platforms = cc65.meta.platforms; 39 + }; 40 + 41 + passthru = { 42 + # upstream project recommends emulator and rom synchronized; 43 + # passing through the version is useful to ensure this 44 + inherit version; 45 + }; 46 + }
+3
pkgs/top-level/all-packages.nix
··· 29490 29490 inherit (darwin.apple_sdk.frameworks) Carbon Cocoa OpenGL OpenAL; 29491 29491 }; 29492 29492 29493 + x16-emulator = callPackage ../misc/emulators/commander-x16/emulator.nix { }; 29494 + x16-rom = callPackage ../misc/emulators/commander-x16/rom.nix { }; 29495 + 29493 29496 bullet = callPackage ../development/libraries/bullet { 29494 29497 inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL; 29495 29498 };