nix-home/overlays/openrazer/default.nix

32 lines
724 B
Nix
Raw Normal View History

2021-11-30 05:17:15 +00:00
final: prev:
let
version = "3.3.0";
2021-11-30 05:17:15 +00:00
src = final.fetchFromGitHub {
owner = "openrazer";
2021-11-30 05:17:15 +00:00
repo = "openrazer";
rev = "v${version}";
sha256 = "sha256-lElE1nIiJ5fk2DupHu43tmxRjRsS5xeL1Yz/LuRlgtM=";
2021-11-30 05:17:15 +00:00
};
in
rec
2021-11-30 05:17:15 +00:00
{
openrazer-daemon = prev.openrazer-daemon.overrideAttrs (old: {
inherit src version;
2021-11-30 05:17:15 +00:00
});
python3 = prev.python3.override {
packageOverrides = self: super: {
openrazer-daemon = super.openrazer-daemon.overrideAttrs (old: {
inherit src version;
2021-11-30 05:17:15 +00:00
});
};
};
python3Packages = python3.pkgs;
linuxPackages_latest = prev.linuxPackages_latest.extend (self: super: {
2021-11-30 05:17:15 +00:00
openrazer = super.openrazer.overrideAttrs (old: {
inherit src version;
2021-11-30 05:17:15 +00:00
});
});
}