Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "sdl_gamecontrollerdb";
|
|
version = "0-unstable-2025-09-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdqinc";
|
|
repo = "SDL_GameControllerDB";
|
|
rev = "38fc811c715365e963a6942092cae147eddddc90";
|
|
hash = "sha256-dyOzv9cloQuLOuq8CExXQxloNJ02VgoxWiBHeNrSZcA=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|