Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "it87-${version}-${kernel.version}";
|
|
version = "unstable-2024-06-09";
|
|
|
|
# Original is no longer maintained.
|
|
# This is the same upstream as the AUR uses.
|
|
src = fetchFromGitHub {
|
|
owner = "frankcrawford";
|
|
repo = "it87";
|
|
rev = "a82899557b4779b87d444a43caf126615e03bb4a";
|
|
hash = "sha256-aMMK3QoeXr6mPbo4SDXE8UuWc/oJ3lpgyK7wyEDKaEM=";
|
|
};
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
preConfigure = ''
|
|
sed -i 's|depmod|#depmod|' Makefile
|
|
'';
|
|
|
|
makeFlags = kernelModuleMakeFlags ++ [
|
|
"TARGET=${kernel.modDirVersion}"
|
|
"KERNEL_MODULES=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
|
|
"MODDESTDIR=$(out)/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Patched module for IT87xx superio chip sensors support";
|
|
homepage = "https://github.com/frankcrawford/it87";
|
|
license = licenses.gpl2Plus;
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"i686-linux"
|
|
];
|
|
teams = [ teams.lumiguide ];
|
|
};
|
|
}
|