From 751e8c94ebb10d06f72258ea4ac426bc5d7f2fc5 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 11 Oct 2023 10:29:46 +0200 Subject: [PATCH] pkgs/ca-gateway: init at 2.1.3 --- pkgs/default.nix | 2 ++ pkgs/epnix/tools/ca-gateway/default.nix | 32 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/epnix/tools/ca-gateway/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index eb311d40..da90fc93 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -37,6 +37,8 @@ with prev; archiver-appliance = callPackage ./epnix/tools/archiver-appliance {}; + ca-gateway = callPackage ./epnix/tools/ca-gateway {}; + pcas = callPackage ./epnix/tools/pcas {}; phoebus = callPackage ./epnix/tools/phoebus/client { diff --git a/pkgs/epnix/tools/ca-gateway/default.nix b/pkgs/epnix/tools/ca-gateway/default.nix new file mode 100644 index 00000000..0cf9a31c --- /dev/null +++ b/pkgs/epnix/tools/ca-gateway/default.nix @@ -0,0 +1,32 @@ +{ + epnixLib, + mkEpicsPackage, + fetchFromGitHub, + python3Packages, + epnix, +}: +mkEpicsPackage rec { + pname = "ca-gateway"; + version = "2.1.3"; + varname = "CA_GATEWAY"; + + src = fetchFromGitHub { + owner = "epics-extensions"; + repo = pname; + rev = "v${version}"; + hash = "sha256-PUe/MPvmBUFOKsrgIZvz65K1/HhD/ugmldKGY6SnMck="; + }; + + buildInputs = with epnix; [pcas]; + + # Needs pyepics + doCheck = false; + checkInputs = [python3Packages.nose]; + + meta = { + description = "Channel Access PV gateway"; + homepage = "https://epics.anl.gov/extensions/gateway/"; + license = epnixLib.licenses.epics; + maintainers = with epnixLib.maintainers; [minijackson]; + }; +}