-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from epics-extensions/feat-add-mrfioc2-support
add mrfioc2 and devlib2 support
- Loading branch information
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
}; | ||
} |