From 9feb250e94b774e6aaf7444dfcf56ccfbf745db6 Mon Sep 17 00:00:00 2001 From: Chuang Zhu Date: Fri, 27 Dec 2024 06:11:25 +0800 Subject: [PATCH] highscore-mupen64plus: init at 0-unstable-2025-12-28 --- .../hi/highscore-mupen64plus/package.nix | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/hi/highscore-mupen64plus/package.nix diff --git a/pkgs/by-name/hi/highscore-mupen64plus/package.nix b/pkgs/by-name/hi/highscore-mupen64plus/package.nix new file mode 100644 index 000000000000..c681af6bd9ee --- /dev/null +++ b/pkgs/by-name/hi/highscore-mupen64plus/package.nix @@ -0,0 +1,52 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, + libhighscore, + mupen64plus, + unstableGitUpdater, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "highscore-mupen64plus"; + version = "0-unstable-2025-12-28"; + + src = fetchFromGitHub { + owner = "highscore-emu"; + repo = "mupen64plus-highscore"; + rev = "94ab5644e5363cf359b334ac057f3f36d24910be"; + hash = "sha256-Q+6iL7DGr62C2fVEP0EWCgm7S7AYAW1C2X1GPKbI7aY="; + }; + + postPatch = '' + substituteInPlace meson.build \ + --replace-fail "run_command('git', 'describe', '--always', '--dirty', check: false).stdout().strip()" \ + "'${finalAttrs.src.rev}'" + ''; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ + libhighscore + mupen64plus + ]; + + passthru.updateScript = unstableGitUpdater { + hardcodeZeroVersion = true; + }; + + meta = { + description = "Port of Mupen64Plus to Highscore"; + homepage = "https://github.com/highscore-emu/mupen64plus-highscore"; + license = lib.licenses.gpl2Plus; + inherit (libhighscore.meta) maintainers; + inherit (mupen64plus.meta) platforms broken; + }; +})