sdl_gamecontrollerdb: init at 0-unstable-2025-06-14

This commit is contained in:
qubitnano
2025-06-22 10:53:59 -04:00
parent d7778543b3
commit f4841c2e68
@@ -0,0 +1,40 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sdl_gamecontrollerdb";
version = "0-unstable-2025-06-14";
src = fetchFromGitHub {
owner = "mdqinc";
repo = "SDL_GameControllerDB";
rev = "79b8ea1035256740c22fb1686fa0c77d201fe45f";
hash = "sha256-pFzIvTlcQW9wGiuMcH6chm6kzE2LLcPgPiSgWbDvgUk=";
};
dontBuild = true;
dontConfigure = true;
installPhase = ''
runHook preInstall
install -Dm644 gamecontrollerdb.txt -t $out/share
install -Dm644 LICENSE -t $out/share/licenses/sdl_gamecontrollerdb
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Community sourced database of game controller mappings to be used with SDL2 and SDL3 Game Controller functionality";
homepage = "https://github.com/mdqinc/SDL_GameControllerDB";
license = lib.licenses.zlib;
maintainers = with lib.maintainers; [ qubitnano ];
platforms = lib.platforms.all;
};
})