From 22ffb17fff60d8b91f683e650551d0a079fea1ab Mon Sep 17 00:00:00 2001 From: Robin Mattheussen Date: Thu, 27 Jul 2023 02:59:47 +0200 Subject: [PATCH] retroarch: include dosbox-pure core --- pkgs/applications/emulators/retroarch/cores.nix | 11 +++++++++++ pkgs/applications/emulators/retroarch/hashes.json | 14 ++++++++++---- .../emulators/retroarch/update_cores.py | 1 + 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index 63e03bc00ad1..a07d899ee749 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -360,6 +360,17 @@ in }; }; + dosbox-pure = mkLibretroCore { + core = "dosbox-pure"; + CXXFLAGS = "-std=gnu++11"; + hardeningDisable = [ "format" ]; + makefile = "Makefile"; + meta = { + description = "Port of DOSBox to libretro aiming for simplicity and ease of use."; + license = lib.licenses.gpl2Only; + }; + }; + eightyone = mkLibretroCore { core = "81"; src = getCoreSrc "eightyone"; diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1b52cda5c1e3..410e782d0a93 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -1,9 +1,9 @@ { "2048": { - "owner": "libretro", - "repo": "libretro-2048", - "rev": "331c1de588ed8f8c370dcbc488e5434a3c09f0f2", - "hash": "sha256-gPrAmoBnfuTnW6t699pqS43vE6t0ca3jZcqTNRaJipA=" + "owner": "libretro", + "repo": "libretro-2048", + "rev": "331c1de588ed8f8c370dcbc488e5434a3c09f0f2", + "hash": "sha256-gPrAmoBnfuTnW6t699pqS43vE6t0ca3jZcqTNRaJipA=" }, "atari800": { "owner": "libretro", @@ -144,6 +144,12 @@ "rev": "b7b24262c282c0caef2368c87323ff8c381b3102", "hash": "sha256-PG2eElenlEpu0U/NIh53p0uLqewnEdaq6Aoak5E1P3I=" }, + "dosbox-pure": { + "owner": "schellingb", + "repo": "dosbox-pure", + "rev": "035e01e43623f83a9e71f362364fd74091379455", + "hash": "sha256-j7Or4yTK5l+ZVC5UFeym9sLx+88PRlofoBT1tMuf31A=" + }, "eightyone": { "owner": "libretro", "repo": "81-libretro", diff --git a/pkgs/applications/emulators/retroarch/update_cores.py b/pkgs/applications/emulators/retroarch/update_cores.py index bd325e5739a7..a091958c38b0 100755 --- a/pkgs/applications/emulators/retroarch/update_cores.py +++ b/pkgs/applications/emulators/retroarch/update_cores.py @@ -36,6 +36,7 @@ CORES = { "desmume2015": {"repo": "desmume2015"}, "dolphin": {"repo": "dolphin"}, "dosbox": {"repo": "dosbox-libretro"}, + "dosbox-pure": {"repo": "dosbox-pure", "owner": "schellingb"}, "eightyone": {"repo": "81-libretro"}, "fbalpha2012": {"repo": "fbalpha2012"}, "fbneo": {"repo": "fbneo"},