Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, kernel }: 2 3stdenv.mkDerivation rec { 4 name = "liquidtux-${version}-${kernel.version}"; 5 version = "unstable-2021-12-16"; 6 7 src = fetchFromGitHub { 8 owner = "liquidctl"; 9 repo = "liquidtux"; 10 rev = "342defc0e22ea58f8ab2ab0f191ad3fd302c44cb"; 11 sha256 = "12rc3vzfq8vnq9x9ca6swk5ag0xkpgkzmga8ga7q80mah9kxbaax"; 12 }; 13 14 hardeningDisable = [ "pic" ]; 15 16 nativeBuildInputs = kernel.moduleBuildDependencies; 17 18 makeFlags = [ 19 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" 20 ]; 21 22 installPhase = '' 23 install nzxt-grid3.ko nzxt-kraken2.ko nzxt-kraken3.ko nzxt-smart2.ko -Dm444 -t ${placeholder "out"}/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon 24 ''; 25 26 meta = with lib; { 27 description = "Linux kernel hwmon drivers for AIO liquid coolers and other devices"; 28 homepage = "https://github.com/liquidctl/liquidtux"; 29 license = licenses.gpl2; 30 platforms = [ "x86_64-linux" "i686-linux" ]; 31 maintainers = with maintainers; [ nickhu ]; 32 broken = lib.versionOlder kernel.version "5.10"; 33 }; 34}