Files
nixpkgs/pkgs/by-name/sd/sdl_gamecontrollerdb/package.nix

41 lines
1.0 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sdl_gamecontrollerdb";
version = "0-unstable-2026-08-11";
src = fetchFromGitHub {
owner = "mdqinc";
repo = "SDL_GameControllerDB";
rev = "22e31ab02557a2b4d765feed8f06f92adee694a7";
hash = "sha256-i0M9n9RKV7X0/Sg6JriBRk1C/V4fIm0ROcwqGAC5BLk=";
};
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;
};
})