From 898dc97f235d9e83dd57369c4551682432565c75 Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Tue, 23 Apr 2024 12:44:08 +0000 Subject: [PATCH] add busy support module --- pkgs/default.nix | 1 + pkgs/epnix/support/busy/default.nix | 39 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/epnix/support/busy/default.nix 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..e20f8c1c --- /dev/null +++ b/pkgs/epnix/support/busy/default.nix @@ -0,0 +1,39 @@ +{ + mkEpicsPackage, + fetchFromGitHub, + epnix, + lib, + epnixLib, +}: +mkEpicsPackage rec { + pname = "busy"; + version = "1-7-4"; + + varname = "BUSY"; + + src = fetchFromGitHub { + owner = "epics-modules"; + repo = pname; + rev = "R${version}"; + hash = "sha256-mSzFLj42iXkyWGWaxplfLehoQcULLpf745trYMd1XT4="; + }; + + preBuild = '' + # Busy really wants to define its own location... naughty! + echo "undefine BUSY" >> configure/RELEASE.local + ''; + + propagatedBuildInputs = with epnix.support; [asyn autosave]; + + meta = { + description = '' + Gives EPICS application developers a way to signal the completion of an operation + via EPICS' putNotify mechanism" + ''; + + homepage = "https://github.com/epics-modules/busy"; + # No license specified, https://github.com/epics-modules/busy/issues/15 + license = lib.licenses.unfree; + maintainers = with epnixLib.maintainers; [synthetica]; + }; +}