nur-packages

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

default.nix (806B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "libsockcanpp";
     10   version = "0-unstable-2024-03-06";
     11 
     12   src = fetchFromGitHub {
     13     owner = "SimonCahill";
     14     repo = "libsockcanpp";
     15     rev = "f2463f9ac320e457bdb3dd1f406511fb75916f2a";
     16     hash = "sha256-n3dmkxhdEQXD4ekanfgPZ/BT+p1oYZJowr2m87W5BZ4=";
     17   };
     18 
     19   postPatch = ''
     20     substituteInPlace CMakeLists.txt \
     21       --replace-fail ''$\{CMAKE_INSTALL_PREFIX\}/ ""
     22   '';
     23 
     24   nativeBuildInputs = [ cmake ];
     25 
     26   meta = {
     27     description = "A C++ wrapper around Linux's socketcan featureset";
     28     homepage = "https://github.com/SimonCahill/libsockcanpp";
     29     license = lib.licenses.asl20;
     30     maintainers = [ lib.maintainers.sikmir ];
     31     platforms = lib.platforms.linux;
     32     skip.ci = stdenv.isDarwin;
     33   };
     34 })