Merge pull request #248513 from OPNA2608/init/nuked-md

nuked-md: init at 1.2

authored by

Emily and committed by
GitHub
9f039b93 2393e099

+74
+72
pkgs/applications/emulators/nuked-md/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , gitUpdater 5 + , cmake 6 + , SDL2 7 + }: 8 + 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "nuked-md"; 11 + version = "1.2"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "nukeykt"; 15 + repo = "Nuked-MD"; 16 + rev = "v${finalAttrs.version}"; 17 + hash = "sha256-Pe+TSu9FBUhxtACq+6jMbrUxiwKLOJgQbEcmUrcrjMs="; 18 + }; 19 + 20 + # Interesting detail about our SDL2 packaging: 21 + # Because we build it with the configure script instead of CMake, we ship sdl2-config.cmake instead of SDL2Config.cmake 22 + # The former doesn't set SDL2_FOUND while the latter does (like CMake config scripts should), which causes this issue: 23 + # 24 + # CMake Error at CMakeLists.txt:5 (find_package): 25 + # Found package configuration file: 26 + # 27 + # <SDL2.dev>/lib/cmake/SDL2/sdl2-config.cmake 28 + # 29 + # but it set SDL2_FOUND to FALSE so package "SDL2" is considered to be NOT 30 + # FOUND. 31 + postPatch = '' 32 + substituteInPlace CMakeLists.txt \ 33 + --replace 'SDL2 REQUIRED' 'SDL2' 34 + ''; 35 + 36 + strictDeps = true; 37 + 38 + nativeBuildInputs = [ 39 + cmake 40 + ]; 41 + 42 + buildInputs = [ 43 + SDL2 44 + ]; 45 + 46 + installPhase = '' 47 + runHook preInstall 48 + 49 + install -Dm755 Nuked-MD $out/bin/Nuked-MD 50 + 51 + runHook postInstall 52 + ''; 53 + 54 + passthru = { 55 + updateScript = gitUpdater { 56 + rev-prefix = "v"; 57 + }; 58 + }; 59 + 60 + meta = with lib; { 61 + description = "Cycle accurate Mega Drive emulator"; 62 + longDescription = '' 63 + Cycle accurate Mega Drive core. The goal of this project is to emulate Sega Mega Drive chipset as accurately as 64 + possible using decapped chips photos. 65 + ''; 66 + homepage = "https://github.com/nukeykt/Nuked-MD"; 67 + license = licenses.gpl2Plus; 68 + mainProgram = "Nuked-MD"; 69 + maintainers = with maintainers; [ OPNA2608 ]; 70 + platforms = platforms.all; 71 + }; 72 + })
+2
pkgs/top-level/all-packages.nix
··· 2613 2613 2614 2614 np2kai = callPackage ../applications/emulators/np2kai { }; 2615 2615 2616 + nuked-md = callPackage ../applications/emulators/nuked-md { }; 2617 + 2616 2618 oberon-risc-emu = callPackage ../applications/emulators/oberon-risc-emu { }; 2617 2619 2618 2620 openmsx = callPackage ../applications/emulators/openmsx { };