diff options
author | Nick Hu <me@nickhu.co.uk> | 2021-12-20 10:47:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 10:47:44 +0000 |
commit | c9a191dd6b1448b9e97c2fdfe4c0916902786a3e (patch) | |
tree | c88946a8aaef894a8ebe6b1ff464d75ca0bbe28d /pkgs/os-specific | |
parent | 19de041ccb48a7e3d58930bd240cc14bf002c7ea (diff) |
liquidtux: init at 2021-12-16 (#150997)
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/liquidtux/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/liquidtux/default.nix b/pkgs/os-specific/linux/liquidtux/default.nix new file mode 100644 index 0000000000000..a306135f73b0d --- /dev/null +++ b/pkgs/os-specific/linux/liquidtux/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub, kernel }: + +stdenv.mkDerivation rec { + name = "liquidtux-${version}-${kernel.version}"; + version = "unstable-2021-12-16"; + + src = fetchFromGitHub { + owner = "liquidctl"; + repo = "liquidtux"; + rev = "342defc0e22ea58f8ab2ab0f191ad3fd302c44cb"; + sha256 = "12rc3vzfq8vnq9x9ca6swk5ag0xkpgkzmga8ga7q80mah9kxbaax"; + }; + + hardeningDisable = [ "pic" ]; + + nativeBuildInputs = kernel.moduleBuildDependencies; + + makeFlags = [ + "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" + ]; + + installPhase = '' + install nzxt-grid3.ko nzxt-kraken2.ko nzxt-kraken3.ko nzxt-smart2.ko -Dm444 -t ${placeholder "out"}/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon + ''; + + meta = with lib; { + description = "Linux kernel hwmon drivers for AIO liquid coolers and other devices"; + homepage = "https://github.com/liquidctl/liquidtux"; + license = licenses.gpl2; + platforms = [ "x86_64-linux" "i686-linux" ]; + maintainers = with maintainers; [ nickhu ]; + }; +} |