nur-packages

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

default.nix (766B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "isotp-c";
     10   version = "1.1.2";
     11 
     12   src = fetchFromGitHub {
     13     owner = "SimonCahill";
     14     repo = "isotp-c";
     15     rev = "v${finalAttrs.version}";
     16     hash = "sha256-bfZXPQQjNIH2wa16RB4/8u9roocEIJhFKQaYMfY7Y4c=";
     17   };
     18 
     19   nativeBuildInputs = [ cmake ];
     20 
     21   installPhase = ''
     22     install -Dm644 $src/*.h -t $out/include
     23     install -Dm644 libisotp.so -t $out/lib
     24   '';
     25 
     26   meta = {
     27     description = "An implementation of the ISO-TP (ISO15765-2) CAN protocol in C";
     28     homepage = "https://github.com/SimonCahill/isotp-c";
     29     license = lib.licenses.mit;
     30     maintainers = [ lib.maintainers.sikmir ];
     31     platforms = lib.platforms.linux;
     32     skip.ci = stdenv.isDarwin;
     33   };
     34 })