Merge pull request #53902 from dtzWill/update/cpupower-fix-for-kernel-5

cpupower: fix w/linux 5, rework a bit
This commit is contained in:
Jörg Thalheim 2019-01-16 20:40:08 +00:00 committed by GitHub
commit bd3957ddc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,8 @@
{ stdenv, buildPackages, kernel, pciutils, gettext }:
stdenv.mkDerivation {
name = "cpupower-${kernel.version}";
src = kernel.src;
pname = "cpupower";
inherit (kernel) version src;
nativeBuildInputs = [ gettext ];
buildInputs = [ pciutils ];
@ -17,16 +16,18 @@ stdenv.mkDerivation {
makeFlags = [ "CROSS=${stdenv.cc.targetPrefix}" ];
installFlags = [
"bindir=$(out)/bin"
"sbindir=$(out)/sbin"
"mandir=$(out)/share/man"
"includedir=$(out)/include"
"libdir=$(out)/lib"
"localedir=$(out)/share/locale"
"docdir=$(out)/share/doc/cpupower"
"confdir=$(out)/etc"
];
installFlags = stdenv.lib.mapAttrsToList
(n: v: "${n}dir=${placeholder "out"}/${v}") {
bin = "bin";
sbin = "sbin";
man = "share/man";
include = "include";
lib = "lib";
locale = "share/locale";
doc = "share/doc/cpupower";
conf = "etc";
bash_completion_ = "share/bash-completion/completions";
};
enableParallelBuilding = true;