depot/third_party/nixpkgs/pkgs/os-specific/linux/it87/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

37 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
name = "it87-${version}-${kernel.version}";
version = "unstable-2022-02-26";
# Original is no longer maintained.
# This is the same upstream as the AUR uses.
src = fetchFromGitHub {
owner = "frankcrawford";
repo = "it87";
rev = "c93d61adadecb009c92f3258cd3ff14a66efb193";
sha256 = "sha256-wVhs//iwZUUGRTk1DpV/SnA7NZ7cFyYbsUbtazlxb6Q=";
};
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"
];
meta = with lib; {
description = "Patched module for IT87xx superio chip sensors support";
homepage = "https://github.com/hannesha/it87";
license = licenses.gpl2Plus;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = teams.lumiguide.members;
};
}