nur-packages

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

commit 634589464a9052e01d5484c1a70d43c1e3153e1a
parent 4af8d8e4ada510217d6bf7c9a8159ce4f2daaee1
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 20 Jan 2024 22:07:26 +0400

Add iso15765-canbus

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/development/libraries/iso15765-canbus/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -84,6 +84,7 @@ lib.makeScope newScope ( ### DEVELOPMENT / LIBRARIES c-periphery = callPackage ./development/libraries/c-periphery { }; + iso15765-canbus = callPackage ./development/libraries/iso15765-canbus { }; libgnunetchat = callPackage ./development/libraries/libgnunetchat { }; libshell = callPackage ./development/libraries/libshell { }; microjson = callPackage ./development/libraries/microjson { }; diff --git a/pkgs/development/libraries/iso15765-canbus/default.nix b/pkgs/development/libraries/iso15765-canbus/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "iso15765-canbus"; + version = "2024-01-17"; + + src = fetchFromGitHub { + owner = "devcoons"; + repo = "iso15765-canbus"; + rev = version; + hash = "sha256-KdVw8JhJsqa+n3ELnTojHV/37Wfb1A2a7fSbBsTkJgI="; + }; + + makeFlags = [ "CC:=$(CC)" "CXX:=$(CXX)" ]; + + installPhase = '' + install -Dm644 lib/lib_iqueue.h src/lib_iso15765.h -t $out/include + install -Dm644 bin/libiso15765.so.0.1 -t $out/lib + ''; + + meta = with lib; { + description = "Implementation of ISO15765-2 in C"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.linux; + skip.ci = stdenv.isDarwin; + }; +}