Skip to content

Commit

Permalink
add mrfioc2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
agaget committed Mar 20, 2024
1 parent ef0f4eb commit e3a6500
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
8 changes: 4 additions & 4 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 All @@ -62,8 +66,4 @@ See `<nixpkgs/maintainers/scripts/check-maintainer-github-handles.sh>` for an ex
email = "[email protected]";
name = "Stéphane Tzvetkov";
};
agaget = {
email = "[email protected]";
name = "Alexis Gaget";
};
}
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ in
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
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 e3a6500

Please sign in to comment.