can-utils: 20170830 -> 2023.03
https://github.com/linux-can/can-utils/releases/tag/v2023.03
This commit is contained in:
parent
cdc53e9ab6
commit
43a0f4801e
1 changed files with 5 additions and 13 deletions
|
@ -1,25 +1,17 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "can-utils";
|
||||
# There are no releases (source archives or git tags), so use the date of the
|
||||
# latest commit in git master as version number.
|
||||
version = "20170830";
|
||||
version = "2023.03";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linux-can";
|
||||
repo = "can-utils";
|
||||
rev = "5b518a0a5fa56856f804372a6b99b518dedb5386";
|
||||
sha256 = "1ygzp8rjr8f1gs48mb1pz7psdgbfhlvr6kjdnmzbsqcml06zvrpr";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-FaopviBJOmO0lXoJcdKNdtsoaJ8JrFEJGyO1aNBv+Pg=";
|
||||
};
|
||||
|
||||
# Fixup build with newer Linux headers.
|
||||
postPatch = ''
|
||||
sed '1i#include <linux/sockios.h>' -i \
|
||||
slcanpty.c cansniffer.c canlogserver.c isotpdump.c isotpsniffer.c isotpperf.c
|
||||
'';
|
||||
|
||||
preConfigure = ''makeFlagsArray+=(PREFIX="$out")'';
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CAN userspace utilities and tools (for use with Linux SocketCAN)";
|
||||
|
|
Loading…
Reference in a new issue