package.nix (908B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 installShellFiles, 6 libconfig, 7 meson, 8 ninja, 9 }: 10 11 stdenv.mkDerivation { 12 pname = "socketcand"; 13 version = "0.6.1-unstable-2025-05-21"; 14 15 __structuredAttrs = true; 16 17 src = fetchFromGitHub { 18 owner = "linux-can"; 19 repo = "socketcand"; 20 rev = "6dd5d33d4645ab221e8cd265c08607366e21ddf1"; 21 hash = "sha256-Pvh0lowK3mQLRu+TotjZS75bwztNvbY7rC3gZUSdjVA="; 22 }; 23 24 nativeBuildInputs = [ 25 installShellFiles 26 meson 27 ninja 28 ]; 29 30 buildInputs = [ libconfig ]; 31 32 postInstall = '' 33 installManPage $src/socketcand.1 34 ''; 35 36 meta = { 37 description = "Server to access CAN sockets over ASCII protocol"; 38 homepage = "https://github.com/linux-can/socketcand"; 39 license = with lib.licenses; [ 40 gpl2Only 41 bsd3 42 ]; 43 platforms = lib.platforms.linux; 44 maintainers = [ lib.maintainers.sikmir ]; 45 skip.ci = stdenv.isDarwin; 46 }; 47 }
