From b601b1ea5e1815e2e7954fefe93f6cc7c545cdb7 Mon Sep 17 00:00:00 2001 From: Chuang Zhu Date: Fri, 27 Dec 2024 06:11:26 +0800 Subject: [PATCH] highscore-stella: init at 0-unstable-2026-01-02 --- pkgs/by-name/hi/highscore-stella/package.nix | 51 ++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/hi/highscore-stella/package.nix diff --git a/pkgs/by-name/hi/highscore-stella/package.nix b/pkgs/by-name/hi/highscore-stella/package.nix new file mode 100644 index 000000000000..eeb0c9bc4d89 --- /dev/null +++ b/pkgs/by-name/hi/highscore-stella/package.nix @@ -0,0 +1,51 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, + libhighscore, + unstableGitUpdater, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "highscore-stella"; + version = "0-unstable-2026-01-02"; + + src = fetchFromGitHub { + owner = "highscore-emu"; + repo = "stella"; + rev = "a8d92c100e83ae2249c5b30afcaa4b4ed31fcc46"; + hash = "sha256-QfKtAIMCqniF15vCuWKz/pwb0FuE6xDp6/rfeUWpMgQ="; + }; + + sourceRoot = "${finalAttrs.src.name}/src/os/highscore"; + + 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 + ]; + + passthru.updateScript = unstableGitUpdater { + hardcodeZeroVersion = true; + }; + + meta = { + description = "Port of Stella to Highscore"; + homepage = "https://github.com/highscore-emu/stella"; + license = lib.licenses.gpl2Only; + inherit (libhighscore.meta) maintainers platforms; + }; +})