mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
cpupower: fix w/5.0-rc1 (completion dir), rework a bit
This commit is contained in:
parent
5285526b0f
commit
f4a765d4b3
@ -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}=${placeholder "out"}/${v}") {
|
||||
bindir = "bin";
|
||||
sbindir = "sbin";
|
||||
mandir = "share/man";
|
||||
includedir = "include";
|
||||
libdir = "lib";
|
||||
localedir = "share/locale";
|
||||
docdir = "share/doc/cpupower";
|
||||
confdir = "etc";
|
||||
bash_completion_dir = "share/bash-completion/completions";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user