mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
28 lines
600 B
Nix
28 lines
600 B
Nix
{ lib, stdenv, kernel, ncurses }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "tmon";
|
|
version = kernel.version;
|
|
|
|
inherit (kernel) src;
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
configurePhase = ''
|
|
cd tools/thermal/tmon
|
|
'';
|
|
|
|
makeFlags = kernel.makeFlags ++ [ "INSTALL_ROOT=\"$(out)\"" "BINDIR=bin" ];
|
|
NIX_CFLAGS_LINK = "-lgcc_s";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
|
|
mainProgram = "tmon";
|
|
homepage = "https://www.kernel.org/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|