Skip to content

Commit

Permalink
Merge pull request #69 from High-Voltage-Engineering/adsDriver
Browse files Browse the repository at this point in the history
Add adsDriver and autoparamDriver
  • Loading branch information
minijackson authored Apr 22, 2024
2 parents fefa2bf + 308cfab commit ae62f8c
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ See `<nixpkgs/maintainers/scripts/check-maintainer-github-handles.sh>` for an ex
email = "[email protected]";
name = "Stéphane Tzvetkov";
};
synthetica = {
email = "[email protected]";
name = "Patrick Hilhorst";
github = "Synthetica9";
githubId = 7075751;
};
}
2 changes: 2 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ 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 {};
calc = callPackage ./epnix/support/calc {};
devlib2 = callPackage ./epnix/support/devlib2 {};
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];
};
}
29 changes: 29 additions & 0 deletions pkgs/epnix/support/autoparamDriver/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
mkEpicsPackage,
fetchFromGitHub,
epnix,
lib,
epnixLib,
}:
mkEpicsPackage rec {
pname = "autoparamDriver";
version = "2.0.0";

varname = "AUTOPARAM";

src = fetchFromGitHub {
owner = "Cosylab";
repo = pname;
rev = "v${version}";
hash = "sha256-J2fy/pMwrbwVFULfANuJBl6iE3wju5bQkhkxxk8zRYs=";
};

propagatedBuildInputs = with epnix.support; [asyn];

meta = {
description = "An asyn driver that creates parameters dynamically based on content of record links";
homepage = "https://epics.cosylab.com/documentation/autoparamDriver/";
license = lib.licenses.mit;
maintainers = with epnixLib.maintainers; [synthetica];
};
}

0 comments on commit ae62f8c

Please sign in to comment.