Skip to content

Commit

Permalink
add EPICS module support 'busy'
Browse files Browse the repository at this point in the history
  • Loading branch information
agaget committed Apr 2, 2024
1 parent 0015fd2 commit e3a1a95
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down
33 changes: 33 additions & 0 deletions pkgs/epnix/support/busy/default.nix
Original file line number Diff line number Diff line change
@@ -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;

buildInputs = with epnix.support; [calc asyn autosave];

src = fetchFromGitHub {
owner = "epics-modules";
repo = "busy";
rev = "R${version}";
sha256 = "sha256-mSzFLj42iXkyWGWaxplfLehoQcULLpf745trYMd1XT4=";
};

patches = [./fix-release.patch];

meta = {
description = "APS BCDA synApps module: busy";
homepage = "APS BCDA synApps module: busy";
license = epnixLib.licenses.epics;
maintainers = with epnixLib.maintainers; [agaget];
};
}
13 changes: 13 additions & 0 deletions pkgs/epnix/support/busy/fix-release.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e3a1a95

Please sign in to comment.