opcua-client-gui: enable on darwin
This commit is contained in:
parent
1264b312da
commit
fb9dba73f3
2 changed files with 16 additions and 6 deletions
|
@ -1,22 +1,32 @@
|
|||
{ lib
|
||||
, python3
|
||||
, stdenv
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
, makeDesktopItem
|
||||
, copyDesktopItems
|
||||
, desktopToDarwinBundle
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "opcua-client-gui";
|
||||
version = "0.8.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FreeOpcUa";
|
||||
repo = pname;
|
||||
repo = "opcua-client-gui";
|
||||
rev = version;
|
||||
hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
nativeBuildInputs = [ copyDesktopItems wrapQtAppsHook ]
|
||||
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
|
||||
|
||||
makeWrapperArgs = [
|
||||
"\${qtWrapperArgs[@]}"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
pyqt5
|
||||
asyncua
|
||||
opcua-widgets
|
||||
|
@ -43,7 +53,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||
meta = with lib; {
|
||||
description = "OPC UA GUI Client";
|
||||
homepage = "https://github.com/FreeOpcUa/opcua-client-gui";
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ janik ];
|
||||
};
|
||||
|
|
|
@ -33609,7 +33609,7 @@ with pkgs;
|
|||
|
||||
opcr-policy = callPackage ../development/tools/opcr-policy { };
|
||||
|
||||
opcua-client-gui = callPackage ../misc/opcua-client-gui { };
|
||||
opcua-client-gui = libsForQt5.callPackage ../misc/opcua-client-gui { };
|
||||
|
||||
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue