1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "can-utils";
9 version = "2025.01";
10
11 src = fetchFromGitHub {
12 owner = "linux-can";
13 repo = "can-utils";
14 rev = "v${version}";
15 hash = "sha256-wum0hqPj3rCHHubNsOnj89tvrRQxoXrGQvZFcMKAGME=";
16 };
17
18 makeFlags = [ "PREFIX=$(out)" ];
19
20 meta = with lib; {
21 description = "CAN userspace utilities and tools (for use with Linux SocketCAN)";
22 homepage = "https://github.com/linux-can/can-utils";
23 license = licenses.gpl2Plus;
24 platforms = platforms.linux;
25 maintainers = with maintainers; [
26 bjornfor
27 Luflosi
28 ];
29 };
30}