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
30
pkgs/os-specific/linux/input-utils/default.nix
Normal file
30
pkgs/os-specific/linux/input-utils/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, fetchurl, linuxHeaders }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "input-utils";
|
||||
version = "1.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.kraxel.org/releases/input/input-${version}.tar.gz";
|
||||
sha256 = "11w0pp20knx6qpgzmawdbk1nj2z3fzp8yd6nag6s8bcga16w6hli";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
# Use proper include path for kernel include files.
|
||||
substituteInPlace ./name.sh --replace "/usr/include/linux/" "${linuxHeaders}/include/linux/"
|
||||
substituteInPlace ./lirc.sh --replace "/usr/include/linux/" "${linuxHeaders}/include/linux/"
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"prefix=$(out)"
|
||||
"STRIP="
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Input layer utilities, includes lsinput";
|
||||
homepage = "https://www.kraxel.org/blog/linux/input/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ samueldr ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue