tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
game-devices-udev-rules: 0.21 -> 0.22
Keenan Weaver
2 years ago
578b8eac
5a193fb4
+14
-13
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
game-devices-udev-rules
default.nix
+14
-13
pkgs/os-specific/linux/game-devices-udev-rules/default.nix
···
1
-
{
2
-
lib,
3
-
stdenv,
4
-
fetchFromGitea,
5
}:
6
-
stdenv.mkDerivation rec {
0
7
pname = "game-devices-udev-rules";
8
-
version = "0.21";
9
10
src = fetchFromGitea {
11
domain = "codeberg.org";
12
owner = "fabiscafe";
13
repo = "game-devices-udev";
14
-
rev = version;
15
-
hash = "sha256-Yy91yDF5BSDTTlr/Pj8e0UklPooEdzvRW8mkhdHtHVo=";
16
};
17
18
-
installPhase = ''
19
-
runHook preInstall
20
install -Dm444 -t "$out/lib/udev/rules.d" *.rules
21
-
runHook postInstall
0
22
'';
23
24
meta = with lib; {
···
32
Additionally, you may need to enable 'hardware.uinput'.
33
'';
34
platforms = platforms.linux;
35
-
maintainers = with maintainers; [keenanweaver];
36
};
37
-
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchFromGitea
4
+
, bash
5
}:
6
+
7
+
stdenv.mkDerivation (finalAttrs: {
8
pname = "game-devices-udev-rules";
9
+
version = "0.22";
10
11
src = fetchFromGitea {
12
domain = "codeberg.org";
13
owner = "fabiscafe";
14
repo = "game-devices-udev";
15
+
rev = finalAttrs.version;
16
+
hash = "sha256-1aOb8pJxB+/PM7spcvZcy/cwdEolHQ4+lwBLij+6iDk=";
17
};
18
19
+
postInstall = ''
0
20
install -Dm444 -t "$out/lib/udev/rules.d" *.rules
21
+
substituteInPlace $out/lib/udev/rules.d/71-powera-controllers.rules \
22
+
--replace "/bin/sh" "${bash}/bin/bash"
23
'';
24
25
meta = with lib; {
···
33
Additionally, you may need to enable 'hardware.uinput'.
34
'';
35
platforms = platforms.linux;
36
+
maintainers = with maintainers; [ keenanweaver ];
37
};
38
+
})