Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 29 lines 538 B view raw
1{ 2 lib, 3 stdenv, 4 kernel, 5 libcap, 6}: 7 8stdenv.mkDerivation { 9 pname = "turbostat"; 10 inherit (kernel) src version; 11 12 buildInputs = [ libcap ]; 13 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 14 15 postPatch = '' 16 cd tools/power/x86/turbostat 17 ''; 18 19 meta = with lib; { 20 description = "Report processor frequency and idle statistics"; 21 mainProgram = "turbostat"; 22 homepage = "https://www.kernel.org/"; 23 license = licenses.gpl2Only; 24 platforms = [ 25 "i686-linux" 26 "x86_64-linux" 27 ]; # x86-specific 28 }; 29}