Skip to content

Commit

Permalink
Add adsDriver and autoparamDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
Synthetica9 committed Apr 9, 2024
1 parent fefa2bf commit a3018c3
Show file tree
Hide file tree
Showing 4 changed files with 75 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 @@ -31,7 +31,9 @@ in

support = recurseExtensible (_self: {
asyn = callPackage ./epnix/support/asyn {};
autoparamDriver = callPackage ./epnix/support/autoparamDriver {};
autosave = callPackage ./epnix/support/autosave {};
adsDriver = callPackage ./epnix/support/adsDriver {};
calc = callPackage ./epnix/support/calc {};
devlib2 = callPackage ./epnix/support/devlib2 {};
epics-systemd = callPackage ./epnix/support/epics-systemd {};
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";

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

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

# TODO: correct?
varname = "ADS";

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 ];
};
}
31 changes: 31 additions & 0 deletions pkgs/epnix/support/autoparamDriver/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
mkEpicsPackage,
fetchFromGitHub,
epnix,
lib,
epnixLib,
}:

mkEpicsPackage rec {
pname = "autoparamDriver";
version = "2.0.0";

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

propagatedBuildInputs = with epnix.support; [ asyn ];

# TODO: is this correct?
varname = "APD";

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 a3018c3

Please sign in to comment.