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
33
pkgs/os-specific/linux/can-isotp/default.nix
Normal file
33
pkgs/os-specific/linux/can-isotp/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, kernel, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "can-isotp";
|
||||
version = "20200910";
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hartkopp";
|
||||
repo = "can-isotp";
|
||||
rev = "21a3a59e2bfad246782896841e7af042382fcae7";
|
||||
sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq";
|
||||
};
|
||||
|
||||
makeFlags = kernel.makeFlags ++ [
|
||||
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||
];
|
||||
|
||||
buildFlags = [ "modules" ];
|
||||
installTargets = [ "modules_install" ];
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kernel module for ISO-TP (ISO 15765-2)";
|
||||
homepage = "https://github.com/hartkopp/can-isotp";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.evck ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue