linuxPackages.cpupower: clean up
fixes the build on 17.09
This commit is contained in:
parent
4250f50dc9
commit
39172792c6
|
@ -7,29 +7,23 @@ stdenv.mkDerivation {
|
|||
|
||||
buildInputs = [ coreutils pciutils gettext ];
|
||||
|
||||
configurePhase = ''
|
||||
postPatch = ''
|
||||
cd tools/power/cpupower
|
||||
sed -i 's,/bin/true,${coreutils}/bin/true,' Makefile
|
||||
sed -i 's,/bin/pwd,${coreutils}/bin/pwd,' Makefile
|
||||
sed -i 's,/usr/bin/install,${coreutils}/bin/install,' Makefile
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make \
|
||||
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" \
|
||||
install install-man
|
||||
'';
|
||||
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"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue