diff --git a/pkgs/default.nix b/pkgs/default.nix index adf63a1..9cd1f15 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -27,6 +27,7 @@ in support = recurseExtensible (_self: { asyn = callPackage ./epnix/support/asyn {}; autosave = callPackage ./epnix/support/autosave {}; + busy = callPackage ./epnix/support/busy {}; calc = callPackage ./epnix/support/calc {}; devlib2 = callPackage ./epnix/support/devlib2 {}; epics-systemd = callPackage ./epnix/support/epics-systemd {}; diff --git a/pkgs/epnix/support/busy/default.nix b/pkgs/epnix/support/busy/default.nix new file mode 100644 index 0000000..7a31a0d --- /dev/null +++ b/pkgs/epnix/support/busy/default.nix @@ -0,0 +1,33 @@ +{ + epnixLib, + mkEpicsPackage, + fetchFromGitHub, + epnix, + local_config_site ? {}, + local_release ? {}, +}: +mkEpicsPackage rec { + pname = "busy"; + version = "1-7-4"; + varname = "BUSY"; + + inherit local_config_site local_release; + + src = fetchFromGitHub { + owner = "epics-modules"; + repo = "busy"; + rev = "R${version}"; + sha256 = "sha256-mSzFLj42iXkyWGWaxplfLehoQcULLpf745trYMd1XT4="; + }; + + patches = [./fix-release.patch]; + + buildInputs = with epnix.support; [calc asyn autosave]; + + meta = { + description = "APS BCDA synApps module: busy"; + homepage = "https://epics.anl.gov/bcda/synApps/busy/busy.html"; + license = epnixLib.licenses.epics; + maintainers = with epnixLib.maintainers; [agaget]; + }; +} diff --git a/pkgs/epnix/support/busy/fix-release.patch b/pkgs/epnix/support/busy/fix-release.patch new file mode 100644 index 0000000..5fa017a --- /dev/null +++ b/pkgs/epnix/support/busy/fix-release.patch @@ -0,0 +1,13 @@ +diff --git a/configure/RELEASE b/configure/RELEASE +index 4d24f2c..61a1d60 100644 +--- a/configure/RELEASE ++++ b/configure/RELEASE +@@ -13,7 +13,7 @@ ASYN=$(SUPPORT)/asyn-4-33 + AUTOSAVE=$(SUPPORT)/autosave-5-9 + + # BUSY is this module +-BUSY=$(SUPPORT)/busy-1-7 ++# BUSY=$(SUPPORT)/busy-1-7 + + # EPICS_BASE usually appears last so other apps can override stuff: + EPICS_BASE=/corvette/usr/local/epics-devel/base-7.0.2