nur-packages

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

default.nix (816B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5 }:
      6 
      7 stdenv.mkDerivation (finalAttrs: {
      8   pname = "iso15765-canbus";
      9   version = "0-unstable-2024-01-17";
     10 
     11   src = fetchFromGitHub {
     12     owner = "devcoons";
     13     repo = "iso15765-canbus";
     14     rev = finalAttrs.version;
     15     hash = "sha256-KdVw8JhJsqa+n3ELnTojHV/37Wfb1A2a7fSbBsTkJgI=";
     16   };
     17 
     18   makeFlags = [
     19     "CC:=$(CC)"
     20     "CXX:=$(CXX)"
     21   ];
     22 
     23   installPhase = ''
     24     install -Dm644 lib/lib_iqueue.h src/lib_iso15765.h -t $out/include
     25     install -Dm644 bin/libiso15765.so.0.1 -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.mit;
     32     maintainers = [ lib.maintainers.sikmir ];
     33     platforms = lib.platforms.linux;
     34     skip.ci = stdenv.isDarwin;
     35   };
     36 })