nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 2bc0139d630ed8c449ccee3ce5a96db826db29ec
parent 4b7e652c397f8b05fbf745773431874a3a8666e3
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Fri,  5 Jan 2024 22:18:34 +0400

Add socketcand

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/socketcand/default.nix | 32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -391,6 +391,7 @@ lib.makeScope newScope ( sdorfehs = callPackage ./misc/sdorfehs { }; serial-studio-bin = callPackage ./misc/serial-studio/bin.nix { }; serverpp = callPackage ./misc/serverpp { }; + socketcand = callPackage ./misc/socketcand { }; subprocess = callPackage ./misc/subprocess { }; tcvt = callPackage ./misc/tcvt { }; telegabber = callPackage ./misc/telegabber { }; diff --git a/pkgs/misc/socketcand/default.nix b/pkgs/misc/socketcand/default.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, installShellFiles, libconfig }: + +stdenv.mkDerivation rec { + pname = "socketcand"; + version = "2023-12-06"; + + src = fetchFromGitHub { + owner = "linux-can"; + repo = "socketcand"; + rev = "02ad0f5a9c9387b8ccfdef837068584b721eff05"; + hash = "sha256-Fsx5eIbiIYctfRcEU5iyG2hKcSV/7R7EyR6WlVFDTCk="; + }; + + nativeBuildInputs = [ autoreconfHook installShellFiles ]; + + buildInputs = [ libconfig ]; + + installPhase = '' + runHook preInstall + install -Dm755 socketcand socketcandcl -t $out/bin + installManPage socketcand.1 + runHook postInstall + ''; + + meta = with lib; { + description = "Server to access CAN sockets over ASCII protocol"; + inherit (src.meta) homepage; + license = with licenses; [ gpl2Only bsd3 ]; + platforms = platforms.linux; + maintainers = [ maintainers.sikmir ]; + }; +}