Skip to content

Commit

Permalink
Add adsDriver support module
Browse files Browse the repository at this point in the history
  • Loading branch information
Synthetica9 committed Apr 15, 2024
1 parent 569e629 commit 308cfab
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ in
# EPICS support modules

support = recurseExtensible (_self: {
adsDriver = callPackage ./epnix/support/adsDriver {};
asyn = callPackage ./epnix/support/asyn {};
autoparamDriver = callPackage ./epnix/support/autoparamDriver {};
autosave = callPackage ./epnix/support/autosave {};
Expand Down
36 changes: 36 additions & 0 deletions pkgs/epnix/support/adsDriver/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
mkEpicsPackage,
fetchFromGitHub,
epnix,
boost,
epnixLib,
lib,
}:
mkEpicsPackage rec {
pname = "adsDriver";
version = "3.1.0";

varname = "ADS_DRIVER";

src = fetchFromGitHub {
owner = "Cosylab";
repo = pname;
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-Ruzi+H8MmIgv23pzFXZlvkk3HtbDzQ9LTTVzmeGWrSI==";
};

nativeBuildInputs = [boost];
buildInputs = [boost];
propagatedBuildInputs = with epnix.support; [
asyn
autoparamDriver
];

meta = {
description = "EPICS support module for integrating Beckhoff PLC using the ADS protocol";
homepage = "https://epics.cosylab.com/documentation/adsDriver/";
license = lib.licenses.mit;
maintainers = with epnixLib.maintainers; [synthetica];
};
}

0 comments on commit 308cfab

Please sign in to comment.