Merge pull request #241181 from keenanweaver/game-devices-udev

authored by Sandro and committed by GitHub 88f3aca0 503c1f5a

+14 -13
+14 -13
pkgs/os-specific/linux/game-devices-udev-rules/default.nix
··· 1 - { 2 - lib, 3 - stdenv, 4 - fetchFromGitea, 1 + { lib 2 + , stdenv 3 + , fetchFromGitea 4 + , bash 5 5 }: 6 - stdenv.mkDerivation rec { 6 + 7 + stdenv.mkDerivation (finalAttrs: { 7 8 pname = "game-devices-udev-rules"; 8 - version = "0.21"; 9 + version = "0.22"; 9 10 10 11 src = fetchFromGitea { 11 12 domain = "codeberg.org"; 12 13 owner = "fabiscafe"; 13 14 repo = "game-devices-udev"; 14 - rev = version; 15 - hash = "sha256-Yy91yDF5BSDTTlr/Pj8e0UklPooEdzvRW8mkhdHtHVo="; 15 + rev = finalAttrs.version; 16 + hash = "sha256-1aOb8pJxB+/PM7spcvZcy/cwdEolHQ4+lwBLij+6iDk="; 16 17 }; 17 18 18 - installPhase = '' 19 - runHook preInstall 19 + postInstall = '' 20 20 install -Dm444 -t "$out/lib/udev/rules.d" *.rules 21 - runHook postInstall 21 + substituteInPlace $out/lib/udev/rules.d/71-powera-controllers.rules \ 22 + --replace "/bin/sh" "${bash}/bin/bash" 22 23 ''; 23 24 24 25 meta = with lib; { ··· 32 33 Additionally, you may need to enable 'hardware.uinput'. 33 34 ''; 34 35 platforms = platforms.linux; 35 - maintainers = with maintainers; [keenanweaver]; 36 + maintainers = with maintainers; [ keenanweaver ]; 36 37 }; 37 - } 38 + })