diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-01-17 21:01:45 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-01-17 21:01:45 -0800 |
| commit | f0123beab2553e88870335ef4f507d9100059abc (patch) | |
| tree | 3f87c1f831630fb77f1f43eb6a4424b75aebb303 | |
| parent | 9c78253c6c753e7ebc492d682907097505c6075b (diff) | |
flake: add openrgb overlay
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | overlays/default.nix | 24 |
2 files changed, 25 insertions, 0 deletions
@@ -23,6 +23,7 @@ inputs.home-manager.nixosModules.default inputs.impermanence.nixosModules.impermanence inputs.nix-minecraft.nixosModules.minecraft-servers + (import ./overlays) ]; }; diff --git a/overlays/default.nix b/overlays/default.nix new file mode 100644 index 0000000..c7ab079 --- /dev/null +++ b/overlays/default.nix @@ -0,0 +1,24 @@ +{ config, pkgs, lib, ... }: + +{ + nixpkgs.overlays = [ + (final: prev: { + openrgb = prev.openrgb.overrideAttrs (old: { + src = prev.fetchFromGitLab { + owner = "CalcProgrammer1"; + repo = "OpenRGB"; + rev = "44c839c1160864c25170306bc1ab392333a682af"; + hash = "sha256-k/Rt8VgaZJGktKj/Lv9G/EwtFykk1n1K2Mc3unEpF48="; + }; + + postPatch = '' + patchShebangs scripts/build-udev-rules.sh + substituteInPlace scripts/build-udev-rules.sh \ + --replace /bin/chmod "${prev.coreutils}/bin/chmod" + substituteInPlace scripts/build-udev-rules.sh \ + --replace /usr/bin/env "${prev.coreutils}/bin/env" + ''; + }); + }) + ]; +}
\ No newline at end of file |