File tree 1 file changed +11
-17
lines changed
pkgs/os-specific/linux/cpupower
1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -7,29 +7,23 @@ stdenv.mkDerivation {
7
7
8
8
buildInputs = [ coreutils pciutils gettext ] ;
9
9
10
- configurePhase = ''
10
+ postPatch = ''
11
11
cd tools/power/cpupower
12
12
sed -i 's,/bin/true,${ coreutils } /bin/true,' Makefile
13
13
sed -i 's,/bin/pwd,${ coreutils } /bin/pwd,' Makefile
14
14
sed -i 's,/usr/bin/install,${ coreutils } /bin/install,' Makefile
15
15
'' ;
16
16
17
- buildPhase = ''
18
- make
19
- '' ;
20
-
21
- installPhase = ''
22
- make \
23
- bindir="$out/bin" \
24
- sbindir="$out/sbin" \
25
- mandir="$out/share/man" \
26
- includedir="$out/include" \
27
- libdir="$out/lib" \
28
- localedir="$out/share/locale" \
29
- docdir="$out/share/doc/cpupower" \
30
- confdir="$out/etc" \
31
- install install-man
32
- '' ;
17
+ installFlags = [
18
+ "bindir=$(out)/bin"
19
+ "sbindir=$(out)/sbin"
20
+ "mandir=$(out)/share/man"
21
+ "includedir=$(out)/include"
22
+ "libdir=$(out)/lib"
23
+ "localedir=$(out)/share/locale"
24
+ "docdir=$(out)/share/doc/cpupower"
25
+ "confdir=$(out)/etc"
26
+ ] ;
33
27
34
28
enableParallelBuilding = true ;
35
29
You can’t perform that action at this time.
0 commit comments