nur-packages

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

default.nix (870B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   boost,
      7   openssl,
      8 }:
      9 
     10 stdenv.mkDerivation (finalAttrs: {
     11   pname = "opcua-stack";
     12   version = "3.8.1";
     13 
     14   src = fetchFromGitHub {
     15     owner = "ASNeG";
     16     repo = "OpcUaStack";
     17     rev = finalAttrs.version;
     18     hash = "sha256-czpuuT9DeZaYo2Q8Y/vW1kAsIiFhRDSKwVBUcFgb9iQ=";
     19   };
     20 
     21   sourceRoot = "${finalAttrs.src.name}/src";
     22 
     23   postPatch = ''
     24     substituteInPlace CMakeLists.txt --replace-fail "/usr" "$out"
     25   '';
     26 
     27   nativeBuildInputs = [ cmake ];
     28 
     29   buildInputs = [
     30     boost
     31     openssl
     32   ];
     33 
     34   meta = {
     35     description = "Open Source OPC UA Application Server and OPC UA Client/Server C++ Libraries";
     36     homepage = "https://asneg.github.io/projects/opcuastack";
     37     license = lib.licenses.asl20;
     38     maintainers = [ lib.maintainers.sikmir ];
     39     platforms = lib.platforms.linux;
     40     skip.ci = stdenv.isDarwin;
     41   };
     42 })