add steelseries stuff
This commit is contained in:
parent
ff6ee6b805
commit
e2c080693c
@ -22,6 +22,9 @@ in
|
|||||||
pkgs.nil
|
pkgs.nil
|
||||||
pkgs.steam
|
pkgs.steam
|
||||||
pkgs.beeper
|
pkgs.beeper
|
||||||
|
pkgs.my-namespace.udev-steelseries
|
||||||
|
pkgs.wine
|
||||||
|
pkgs.bottles
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
47
packages/udev-steelseries/default.nix
Normal file
47
packages/udev-steelseries/default.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
# 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
|
||||||
|
'';
|
||||||
|
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -35,4 +35,5 @@
|
|||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user