summary refs log tree commit diff
path: root/pkgs/os-specific/linux/can-utils/default.nix
blob: 6d5b7e0d650643c80b8e636b75e342cde8886e93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "can-utils";
  version = "2023.03";

  src = fetchFromGitHub {
    owner = "linux-can";
    repo = "can-utils";
    rev = "v${version}";
    hash = "sha256-FaopviBJOmO0lXoJcdKNdtsoaJ8JrFEJGyO1aNBv+Pg=";
  };

  makeFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    description = "CAN userspace utilities and tools (for use with Linux SocketCAN)";
    homepage = "https://github.com/linux-can/can-utils";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ bjornfor Luflosi ];
  };
}