Skip to content

Commit

Permalink
libplctag: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Jan 5, 2025
1 parent 6f4b580 commit a6e3802
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions pkgs/by-name/li/libplctag/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}
})

0 comments on commit a6e3802

Please sign in to comment.