highscore-prosystem: init at 0-unstable-2025-12-27

This commit is contained in:
Chuang Zhu
2026-01-03 11:30:01 +08:00
committed by aleksana
parent 6635a9b5c2
commit ed9cb017b2
@@ -0,0 +1,51 @@
{
lib,
stdenv,
fetchFromGitLab,
meson,
ninja,
pkg-config,
libhighscore,
unstableGitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "highscore-prosystem";
version = "0-unstable-2025-12-27";
src = fetchFromGitLab {
owner = "highscore-emu";
repo = "prosystem";
rev = "44d86957d9377fdc1650c8cdaafbf7e2e2671827";
hash = "sha256-vxgh819XwI6rjoI7WwUEPx0PVpb58+MIOhCINQKom0Q=";
};
sourceRoot = "${finalAttrs.src.name}/highscore";
postPatch = ''
substituteInPlace meson.build \
--replace-fail "run_command('git', 'describe', '--always', '--dirty', '--match', ''', check: false).stdout().strip()" \
"'${finalAttrs.src.rev}'"
'';
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
libhighscore
];
passthru.updateScript = unstableGitUpdater {
hardcodeZeroVersion = true;
};
meta = {
description = "Port of ProSystem to Highscore";
homepage = "https://gitlab.com/highscore-emu/prosystem";
license = lib.licenses.gpl2Plus;
inherit (libhighscore.meta) maintainers platforms;
};
})