Unverified Commit e5170f67 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

libplctag: fix build (#371130)

parents eef2fac8 a6e3802b
Loading
Loading
Loading
Loading
+15 −8
Original line number Diff line number Diff line
@@ -5,27 +5,34 @@
  fetchFromGitHub,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "libplctag";
  version = "2.6.3";

  src = fetchFromGitHub {
    owner = "libplctag";
    repo = "libplctag";
    rev = "v${version}";
    sha256 = "sha256-HUog7Tlm4jiqYXk22dziumCA/68c35+OwnTNYu9mV5E=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-HUog7Tlm4jiqYXk22dziumCA/68c35+OwnTNYu9mV5E=";
  };

  env = {
    NIX_CFLAGS_COMPILE = toString [
      "-Wno-error=implicit-function-declaration"
      "-Wno-error=int-conversion"
    ];
  };

  nativeBuildInputs = [ cmake ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/libplctag/libplctag";
    description = "Library that uses EtherNet/IP or Modbus TCP to read and write tags in PLCs";
    license = with licenses; [
    license = with lib.licenses; [
      lgpl2Plus
      mpl20
    ];
    maintainers = with maintainers; [ petterstorvik ];
    platforms = platforms.all;
    maintainers = with lib.maintainers; [ petterstorvik ];
    platforms = lib.platforms.all;
  };
}
})