default.nix (976B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 installShellFiles, 7 libconfig, 8 }: 9 10 stdenv.mkDerivation { 11 pname = "socketcand"; 12 version = "0.6.1-unstable-2023-12-06"; 13 14 src = fetchFromGitHub { 15 owner = "linux-can"; 16 repo = "socketcand"; 17 rev = "02ad0f5a9c9387b8ccfdef837068584b721eff05"; 18 hash = "sha256-Fsx5eIbiIYctfRcEU5iyG2hKcSV/7R7EyR6WlVFDTCk="; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 installShellFiles 24 ]; 25 26 buildInputs = [ libconfig ]; 27 28 installPhase = '' 29 runHook preInstall 30 install -Dm755 socketcand socketcandcl -t $out/bin 31 installManPage socketcand.1 32 runHook postInstall 33 ''; 34 35 meta = { 36 description = "Server to access CAN sockets over ASCII protocol"; 37 homepage = "https://github.com/linux-can/socketcand"; 38 license = with lib.licenses; [ 39 gpl2Only 40 bsd3 41 ]; 42 platforms = lib.platforms.linux; 43 maintainers = [ lib.maintainers.sikmir ]; 44 skip.ci = stdenv.isDarwin; 45 }; 46 }