Skip to content

Commit

Permalink
Merge pull request #45 from epics-extensions/feat-add-ads-support
Browse files Browse the repository at this point in the history
Adding ads driver support
  • Loading branch information
minijackson authored Jun 20, 2024
2 parents 2f6e6a4 + abc9a0a commit 8ff1d0f
Show file tree
Hide file tree
Showing 2 changed files with 41 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 @@ -48,6 +48,7 @@ in
snmp = callPackage ./epnix/support/snmp {};
sscan = callPackage ./epnix/support/sscan {};
StreamDevice = callPackage ./epnix/support/StreamDevice {};
twincat-ads = callPackage ./epnix/support/twincat-ads {};
});

# EPICS related tools and extensions
Expand Down
40 changes: 40 additions & 0 deletions pkgs/epnix/support/twincat-ads/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
epnixLib,
epnix,
mkEpicsPackage,
fetchFromGitLab,
local_config_site ? {},
local_release ? {},
}:
mkEpicsPackage rec {
pname = "twincat-ads";
version = "2024.01.11";
varname = "TWINCATADS";

inherit local_config_site local_release;

src = fetchFromGitLab {
domain = "gitlab.esss.lu.se";
owner = "epics-modules";
repo = "epics-twincat-ads";
rev = "c8e8b52c1f34640eca97b8fb053e793dc68acc0a";
fetchSubmodules = true;
sha256 = "sha256-f7hod1N1AzCh+W7nHl9VCA+nuwpJAboSh19Dq80n/2E=";
};

propagatedBuildInputs = with epnix.support; [asyn calc];

preBuild = ''
touch configure/RELEASE_PATHS.local
touch configure/RELEASE_LIBS.local
'';

meta = {
description = "Module providing EPICS support for ADS Protocol (Automation Device Specification)";
homepage = "https://gitlab.esss.lu.se/epics-modules/epics-twincat-ads";
# Wait for ESS team answer about the license : https://gitlab.esss.lu.se/epics-modules/epics-twincat-ads/-/issues/1
license = lib.licenses.free;
maintainers = with epnixLib.maintainers; [agaget];
};
}

0 comments on commit 8ff1d0f

Please sign in to comment.