Skip to content

Commit

Permalink
Merge pull request #47 from epics-extensions/feat-add-mrfioc2-support
Browse files Browse the repository at this point in the history
add mrfioc2 and devlib2 support
  • Loading branch information
minijackson authored Mar 22, 2024
2 parents e968026 + e3a6500 commit 0015fd2
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Please keep the list alphabetically sorted.
See `<nixpkgs/maintainers/scripts/check-maintainer-github-handles.sh>` for an example on how to work with this data.
*/
{
agaget = {
email = "[email protected]";
name = "Alexis Gaget";
};
minijackson = {
email = "[email protected]";
name = "Rémi Nicole";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ in
asyn = callPackage ./epnix/support/asyn {};
autosave = callPackage ./epnix/support/autosave {};
calc = callPackage ./epnix/support/calc {};
devlib2 = callPackage ./epnix/support/devlib2 {};
epics-systemd = callPackage ./epnix/support/epics-systemd {};
ipac = callPackage ./epnix/support/ipac {};
modbus = callPackage ./epnix/support/modbus {};
mrfioc2 = callPackage ./epnix/support/mrfioc2 {};
pvxs = callPackage ./epnix/support/pvxs {};
seq = callPackage ./epnix/support/seq {};
snmp = callPackage ./epnix/support/snmp {};
Expand Down
32 changes: 32 additions & 0 deletions pkgs/epnix/support/devlib2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
lib,
epnixLib,
mkEpicsPackage,
fetchFromGitHub,
fetchpatch,
local_config_site ? {},
local_release ? {},
}:
mkEpicsPackage rec {
pname = "devlib2";
version = "2.12";
varname = "DEVLIB2";
#tests seems to need a PCI device to be validated.
doCheck = false;

inherit local_config_site local_release;

src = fetchFromGitHub {
owner = "epics-modules";
repo = "devlib2";
rev = version;
sha256 = "sha256-5rjilz+FO6ZM+Hn7AVwyFG2WWBoBUQA4WW5OHhhdXw4=";
};

meta = {
description = "devLib2 - Library for direct MMIO access to PCI and VME64x";
homepage = "https://github.com/epics-modules/devlib2";
license = epnixLib.licenses.epics;
maintainers = with epnixLib.maintainers; [agaget];
};
}
39 changes: 39 additions & 0 deletions pkgs/epnix/support/mrfioc2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
epnix,
epnixLib,
mkEpicsPackage,
fetchFromGitHub,
fetchpatch,
local_config_site ? {},
local_release ? {},
}:
mkEpicsPackage rec {
pname = "mrfioc2";
version = "2.6.0";
varname = "MRFIOC2";

inherit local_config_site local_release;

src = fetchFromGitHub {
owner = "epics-modules";
repo = "mrfioc2";
rev = version;
sha256 = "sha256-pmuM4HrHlZ63BcZACZOlMAPic1IOQ/kLpi9lo/raP0U=";
};

propagatedBuildInputs = with epnix.support; [devlib2];

postInstall = ''
if [[ -d iocBoot ]]; then
cp -rafv iocBoot -t "$out"
fi
'';

meta = {
description = "Driver EPICS for MRF cards";
homepage = "https://github.com/epics-modules/mrfioc2";
license = epnixLib.licenses.epics;
maintainers = with epnixLib.maintainers; [agaget];
};
}

0 comments on commit 0015fd2

Please sign in to comment.