2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, kernel }:
|
2019-03-12 14:33:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "it87-${version}-${kernel.version}";
|
2024-07-28 22:50:06 +00:00
|
|
|
version = "unstable-2024-06-09";
|
2019-03-12 14:33:50 +00:00
|
|
|
|
2022-05-23 14:29:24 +00:00
|
|
|
# Original is no longer maintained.
|
|
|
|
# This is the same upstream as the AUR uses.
|
2019-03-12 14:33:50 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-05-23 14:29:24 +00:00
|
|
|
owner = "frankcrawford";
|
2019-03-12 14:33:50 +00:00
|
|
|
repo = "it87";
|
2024-07-28 22:50:06 +00:00
|
|
|
rev = "a82899557b4779b87d444a43caf126615e03bb4a";
|
|
|
|
hash = "sha256-aMMK3QoeXr6mPbo4SDXE8UuWc/oJ3lpgyK7wyEDKaEM=";
|
2019-03-12 14:33:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's|depmod|#depmod|' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"TARGET=${kernel.modDirVersion}"
|
|
|
|
"KERNEL_MODULES=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
|
|
|
|
"MODDESTDIR=$(out)/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-12 14:33:50 +00:00
|
|
|
description = "Patched module for IT87xx superio chip sensors support";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/hannesha/it87";
|
2022-05-23 14:31:15 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-03-12 14:33:50 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2022-05-24 10:16:25 +00:00
|
|
|
maintainers = teams.lumiguide.members;
|
2019-03-12 14:33:50 +00:00
|
|
|
};
|
|
|
|
}
|