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
31
pkgs/os-specific/linux/cpufrequtils/default.nix
Normal file
31
pkgs/os-specific/linux/cpufrequtils/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, fetchurl, libtool, gettext }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cpufrequtils";
|
||||
version = "008";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-${version}.tar.gz";
|
||||
sha256 = "127i38d4w1hv2dzdy756gmbhq25q3k34nqb2s0xlhsfhhdqs0lq0";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# I am not 100% sure that this is ok, but it breaks repeatable builds.
|
||||
./remove-pot-creation-date.patch
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
sed -e "s@= /usr/bin/@= @g" \
|
||||
-e "s@/usr/@$out/@" \
|
||||
-i Makefile
|
||||
'';
|
||||
|
||||
buildInputs = [ stdenv.cc.libc.linuxHeaders libtool gettext ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tools to display or change the CPU governor settings";
|
||||
homepage = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue