libplctag: fix build (#371130)

This commit is contained in:
Gaétan Lepage
2025-01-10 00:01:59 +01:00
committed by GitHub
+15 -8
View File
@@ -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;
};
}
})