48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{
|
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
|
# as well as the libraries available from your flake's inputs.
|
|
lib,
|
|
# You also have access to your flake's inputs.
|
|
inputs,
|
|
|
|
# The namespace used for your flake, defaulting to "internal" if not set.
|
|
namespace,
|
|
|
|
# All other arguments come from NixPkgs. You can use `pkgs` to pull packages or helpers
|
|
# programmatically or you may add the named attributes as arguments here.
|
|
pkgs,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
...
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "steelseries-udev-rules";
|
|
version = "unstable-2024-11-10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MiddleMan5";
|
|
repo = "steelseries-linux";
|
|
rev = "d93dfdb6daeec150578e85e25b2e9df79e9539b7";
|
|
sha256 = "sha256-yPw8QFKhlqb6lxQyYjBz34pEEfTVk1Yp9jFWdX5yH2k=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
dontConfigure = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/udev/rules.d
|
|
cp resources/98-steelseries.rules $out/lib/udev/rules.d/98-steelseries.rules
|
|
mkdir -p $out/etc/udev/rules.d
|
|
cp resources/98-steelseries-init.py $out/etc/udev/rules.d/98-steelseries-init.py
|
|
chmod +x $out/etc/udev/rules.d/98-steelseries-init.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "udev rules for Steelseries devices";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ asymmetric ];
|
|
platforms = platforms.linux;
|
|
homepage = "https://github.com/MiddleMan5/steelseries-linux";
|
|
};
|
|
} |