Skip to content

Commit

Permalink
feat(support): add mrfioc2 and devlib2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
agaget committed Jan 11, 2024
1 parent f2b354f commit bbaddb8
Show file tree
Hide file tree
Showing 4 changed files with 71 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 @@ -62,4 +62,8 @@ 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";
};
}
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 {};
seq = callPackage ./epnix/support/seq {};
snmp = callPackage ./epnix/support/snmp {};
sscan = callPackage ./epnix/support/sscan {};
Expand Down
31 changes: 31 additions & 0 deletions pkgs/epnix/support/devlib2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
epnixLib,
mkEpicsPackage,
fetchFromGitHub,
fetchpatch,
local_config_site ? {},
local_release ? {},
}:
mkEpicsPackage rec {
pname = "devlib2";
version = "2.12";
varname = "DEVLIB2";
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 = lib.licenses.lgpl21Plus;
maintainers = with epnixLib.maintainers; [agaget];
};
}
34 changes: 34 additions & 0 deletions pkgs/epnix/support/mrfioc2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
epnix,
epnixLib,
mkEpicsPackage,
fetchFromGitHub,
fetchpatch,
local_config_site ? {},
local_release ? {},
}:
mkEpicsPackage rec {
pname = "mrfioc2";
version = "2.5.0";
varname = "MRFIOC2";
doCheck = false;

inherit local_config_site local_release;

src = fetchFromGitHub {
owner = "epics-modules";
repo = "mrfioc2";
rev = version;
sha256 = "sha256-Z7iTM8i5aaA98j46ouuRhgVfRayitv2O4WhFm6ENark=";
};

propagatedBuildInputs = with epnix.support; [devlib2];

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

0 comments on commit bbaddb8

Please sign in to comment.