Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 29 lines 631 B view raw
1{ 2 lib, 3 stdenv, 4 kernel, 5}: 6 7stdenv.mkDerivation { 8 pname = "intel-speed-select"; 9 inherit (kernel) src version; 10 11 makeFlags = [ "bindir=${placeholder "out"}/bin" ]; 12 13 postPatch = '' 14 cd tools/power/x86/intel-speed-select 15 sed -i 's,/usr,,g' Makefile 16 ''; 17 18 meta = with lib; { 19 description = "Tool to enumerate and control the Intel Speed Select Technology features"; 20 mainProgram = "intel-speed-select"; 21 homepage = "https://www.kernel.org/"; 22 license = licenses.gpl2Only; 23 platforms = [ 24 "i686-linux" 25 "x86_64-linux" 26 ]; # x86-specific 27 broken = kernel.kernelAtLeast "5.18"; 28 }; 29}