Skip to content

Commit

Permalink
steam-devices-udev-rules: init at 1.0.0.61-unstable-2024-05-22
Browse files Browse the repository at this point in the history
  • Loading branch information
azuwis committed Dec 8, 2024
1 parent 2e98ec0 commit afb7ab0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/by-name/st/steam-devices-udev-rules/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
bash,
nix-update-script,
}:

stdenvNoCC.mkDerivation {
pname = "steam-devices-udev-rules";
version = "1.0.0.61-unstable-2024-05-22";

src = fetchFromGitHub {
owner = "ValveSoftware";
repo = "steam-devices";
rev = "e2971e45063f6b327ccedbf18e168bda6749155c";
hash = "sha256-kBqWw3TlCSWS7gJXgza2ghemypQ0AEg7NhWqAFnal04=";
};

installPhase = ''
runHook preInstall
mkdir -p $out/lib/udev/rules.d/
cp *.rules $out/lib/udev/rules.d/
substituteInPlace $out/lib/udev/rules.d/*.rules --replace-warn "/bin/sh" "${bash}/bin/sh"
runHook postInstall
'';

passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };

meta = with lib; {
description = "Udev rules list for gaming devices";
homepage = "https://github.com/ValveSoftware/steam-devices";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ azuwis ];
};
}

0 comments on commit afb7ab0

Please sign in to comment.