package.nix (879B)
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 src = fetchFromGitHub { 16 owner = "linux-can"; 17 repo = "socketcand"; 18 rev = "6dd5d33d4645ab221e8cd265c08607366e21ddf1"; 19 hash = "sha256-Pvh0lowK3mQLRu+TotjZS75bwztNvbY7rC3gZUSdjVA="; 20 }; 21 22 nativeBuildInputs = [ 23 installShellFiles 24 meson 25 ninja 26 ]; 27 28 buildInputs = [ libconfig ]; 29 30 postInstall = '' 31 installManPage $src/socketcand.1 32 ''; 33 34 meta = { 35 description = "Server to access CAN sockets over ASCII protocol"; 36 homepage = "https://github.com/linux-can/socketcand"; 37 license = with lib.licenses; [ 38 gpl2Only 39 bsd3 40 ]; 41 platforms = lib.platforms.linux; 42 maintainers = [ lib.maintainers.sikmir ]; 43 skip.ci = stdenv.isDarwin; 44 }; 45 }
