From a446da21a0c77d2422f5bb62927c0a3c8ea68d59 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 7 Aug 2023 13:10:02 +0200 Subject: [PATCH] pkgs/pvxs: init at 1.2.2 --- pkgs/default.nix | 1 + pkgs/epnix/support/pvxs/default.nix | 35 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/epnix/support/pvxs/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 91d15cab..6747adcc 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -27,6 +27,7 @@ with prev; epics-systemd = callPackage ./epnix/support/epics-systemd {}; ipac = callPackage ./epnix/support/ipac {}; modbus = callPackage ./epnix/support/modbus {}; + pvxs = callPackage ./epnix/support/pvxs {}; seq = callPackage ./epnix/support/seq {}; snmp = callPackage ./epnix/support/snmp {}; sscan = callPackage ./epnix/support/sscan {}; diff --git a/pkgs/epnix/support/pvxs/default.nix b/pkgs/epnix/support/pvxs/default.nix new file mode 100644 index 00000000..f558ff25 --- /dev/null +++ b/pkgs/epnix/support/pvxs/default.nix @@ -0,0 +1,35 @@ +{ + lib, + epnixLib, + mkEpicsPackage, + fetchFromGitHub, + libevent, + local_config_site ? {}, + local_release ? {}, +}: +mkEpicsPackage rec { + pname = "pvxs"; + version = "1.2.2"; + varname = "PVXS"; + + inherit local_config_site local_release; + + buildInputs = [libevent]; + + # Only loopback interface is present + doCheck = false; + + src = fetchFromGitHub { + owner = "mdavidsaver"; + repo = "pvxs"; + rev = version; + sha256 = "sha256-h2B+kkQ8n33m2TkqRJ52MEUrUlTYDMSrwwpkHL2RWJE="; + }; + + meta = { + description = "PVA protocol client/server library and utilities"; + homepage = "https://mdavidsaver.github.io/pvxs/"; + license = lib.licenses.bsd3; + maintainers = with epnixLib.maintainers; [minijackson]; + }; +}