Skip to content

Commit

Permalink
add devlib2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
agaget committed Mar 20, 2024
1 parent e040bce commit ef0f4eb
Show file tree
Hide file tree
Showing 3 changed files with 37 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";
};
}
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ 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 {};
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];
};
}

0 comments on commit ef0f4eb

Please sign in to comment.