diff --git a/pkgs/default.nix b/pkgs/default.nix index accd1ca0..c81dfa20 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -34,6 +34,7 @@ in asyn = callPackage ./epnix/support/asyn {}; autoparamDriver = callPackage ./epnix/support/autoparamDriver {}; 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 00000000..7a31a0db --- /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 00000000..5fa017ac --- /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