package.nix (820B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "iso15765-canbus"; 10 version = "2024-12-11"; 11 12 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "devcoons"; 16 repo = "iso15765-canbus"; 17 tag = finalAttrs.version; 18 hash = "sha256-qLfrwDUNoFUo58bRudAdkrE5GsREyU/lWkVryX1K2fk="; 19 }; 20 21 nativeBuildInputs = [ cmake ]; 22 23 installPhase = '' 24 install -Dm644 ../lib/lib_iqueue.h ../src/lib_iso15765.h -t $out/include 25 install -Dm644 build/*.a -t $out/lib 26 ''; 27 28 meta = { 29 description = "Implementation of ISO15765-2 in C"; 30 homepage = "https://github.com/devcoons/iso15765-canbus"; 31 license = lib.licenses.agpl3Only; 32 maintainers = [ lib.maintainers.sikmir ]; 33 platforms = lib.platforms.linux; 34 skip.ci = stdenv.isDarwin; 35 }; 36 })
