uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
26
pkgs/os-specific/linux/x86_energy_perf_policy/default.nix
Normal file
26
pkgs/os-specific/linux/x86_energy_perf_policy/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, stdenv, kernel }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "x86_energy_perf_policy";
|
||||
version = kernel.version;
|
||||
|
||||
src = kernel.src;
|
||||
|
||||
postPatch = ''
|
||||
cd tools/power/x86/x86_energy_perf_policy
|
||||
sed -i 's,/usr,,g' Makefile
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin $out/share/man/man8
|
||||
'';
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Set the energy versus performance policy preference bias on recent X86 processors";
|
||||
homepage = "https://www.kernel.org/";
|
||||
license = licenses.gpl2;
|
||||
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue