default.nix (791B)
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 src = fetchFromGitHub { 13 owner = "devcoons"; 14 repo = "iso15765-canbus"; 15 tag = finalAttrs.version; 16 hash = "sha256-qLfrwDUNoFUo58bRudAdkrE5GsREyU/lWkVryX1K2fk="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 installPhase = '' 22 install -Dm644 ../lib/lib_iqueue.h ../src/lib_iso15765.h -t $out/include 23 install -Dm644 build/*.a -t $out/lib 24 ''; 25 26 meta = { 27 description = "Implementation of ISO15765-2 in C"; 28 homepage = "https://github.com/devcoons/iso15765-canbus"; 29 license = lib.licenses.agpl3Only; 30 maintainers = [ lib.maintainers.sikmir ]; 31 platforms = lib.platforms.linux; 32 skip.ci = stdenv.isDarwin; 33 }; 34 })