diff --git a/pkgs/by-name/li/libhighscore/package.nix b/pkgs/by-name/li/libhighscore/package.nix new file mode 100644 index 000000000000..47a8c87eeb4a --- /dev/null +++ b/pkgs/by-name/li/libhighscore/package.nix @@ -0,0 +1,54 @@ +{ + lib, + stdenv, + fetchFromGitLab, + meson, + ninja, + pkg-config, + glib, + vala, + gobject-introspection, + unstableGitUpdater, +}: + +stdenv.mkDerivation { + pname = "libhighscore"; + version = "0-unstable-2025-12-06"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "alicem"; + repo = "libhighscore"; + rev = "6920d96b440ccfc070fc87c39c51beab8ac053bd"; + hash = "sha256-JXfPLPHA3HwXRG6sT/5TSMbtU+BqBh/+ZVrzJxW0xLg="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + glib # For glib-mkenums + gobject-introspection # For g-ir-scanner + vala # For vapigen + ]; + + # In highscore-1.pc + propagatedBuildInputs = [ + glib + ]; + + passthru.updateScript = unstableGitUpdater { + hardcodeZeroVersion = true; + }; + + meta = { + description = "Interface for porting emulators to Highscore"; + homepage = "https://gitlab.gnome.org/alicem/libhighscore"; + license = lib.licenses.lgpl21Plus; + maintainers = with lib.maintainers; [ + chuangzhu + aleksana + ]; + platforms = lib.platforms.linux; + }; +}