From f04825cc31b261e393978bdabdf6b7dde64c1599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 20 Feb 2020 21:16:50 +0100 Subject: [PATCH] can-utils: fixup build after PR #78994 --- pkgs/os-specific/linux/can-utils/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/os-specific/linux/can-utils/default.nix b/pkgs/os-specific/linux/can-utils/default.nix index 6e26ef4bbce8..1451a4e96c08 100644 --- a/pkgs/os-specific/linux/can-utils/default.nix +++ b/pkgs/os-specific/linux/can-utils/default.nix @@ -13,6 +13,12 @@ stdenv.mkDerivation { sha256 = "1ygzp8rjr8f1gs48mb1pz7psdgbfhlvr6kjdnmzbsqcml06zvrpr"; }; + # Fixup build with newer Linux headers. + postPatch = '' + sed '1i#include ' -i \ + slcanpty.c cansniffer.c canlogserver.c isotpdump.c isotpsniffer.c isotpperf.c + ''; + preConfigure = ''makeFlagsArray+=(PREFIX="$out")''; meta = with stdenv.lib; {