Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 27 lines 604 B view raw
1{ lib, stdenv, kernel, ncurses }: 2 3stdenv.mkDerivation { 4 pname = "tmon"; 5 version = kernel.version; 6 7 inherit (kernel) src; 8 9 buildInputs = [ ncurses ]; 10 11 configurePhase = '' 12 cd tools/thermal/tmon 13 ''; 14 15 makeFlags = kernel.makeFlags ++ [ "INSTALL_ROOT=\"$(out)\"" "BINDIR=bin" ]; 16 NIX_CFLAGS_LINK = "-lgcc_s"; 17 18 enableParallelBuilding = true; 19 20 meta = with lib; { 21 description = "Monitoring and Testing Tool for Linux kernel thermal subsystem"; 22 mainProgram = "tmon"; 23 homepage = "https://www.kernel.org/"; 24 license = licenses.gpl2Only; 25 platforms = platforms.linux; 26 }; 27}