Skip to content

Commit

Permalink
linuxPackages.cpupower: clean up
Browse files Browse the repository at this point in the history
fixes the build on 17.09

(cherry picked from commit 3917279)
  • Loading branch information
globin committed Feb 5, 2018
1 parent b6ad2ef commit 5c09cdc
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions pkgs/os-specific/linux/cpupower/default.nix
Expand Up @@ -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;

Expand Down

0 comments on commit 5c09cdc

Please sign in to comment.