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 ];
|
buildInputs = [ coreutils pciutils gettext ];
|
||||||
|
|
||||||
configurePhase = ''
|
postPatch = ''
|
||||||
cd tools/power/cpupower
|
cd tools/power/cpupower
|
||||||
sed -i 's,/bin/true,${coreutils}/bin/true,' Makefile
|
sed -i 's,/bin/true,${coreutils}/bin/true,' Makefile
|
||||||
sed -i 's,/bin/pwd,${coreutils}/bin/pwd,' Makefile
|
sed -i 's,/bin/pwd,${coreutils}/bin/pwd,' Makefile
|
||||||
sed -i 's,/usr/bin/install,${coreutils}/bin/install,' Makefile
|
sed -i 's,/usr/bin/install,${coreutils}/bin/install,' Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
installFlags = [
|
||||||
make
|
"bindir=$(out)/bin"
|
||||||
'';
|
"sbindir=$(out)/sbin"
|
||||||
|
"mandir=$(out)/share/man"
|
||||||
installPhase = ''
|
"includedir=$(out)/include"
|
||||||
make \
|
"libdir=$(out)/lib"
|
||||||
bindir="$out/bin" \
|
"localedir=$(out)/share/locale"
|
||||||
sbindir="$out/sbin" \
|
"docdir=$(out)/share/doc/cpupower"
|
||||||
mandir="$out/share/man" \
|
"confdir=$(out)/etc"
|
||||||
includedir="$out/include" \
|
];
|
||||||
libdir="$out/lib" \
|
|
||||||
localedir="$out/share/locale" \
|
|
||||||
docdir="$out/share/doc/cpupower" \
|
|
||||||
confdir="$out/etc" \
|
|
||||||
install install-man
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user