nur-packages

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

package.nix (795B)


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