mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, makeDesktopItem
|
|
, copyDesktopItems
|
|
, desktopToDarwinBundle
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "opcua-client-gui";
|
|
version = "0.8.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FreeOpcUa";
|
|
repo = "opcua-client-gui";
|
|
rev = version;
|
|
hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ copyDesktopItems wrapQtAppsHook ]
|
|
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
|
|
|
|
makeWrapperArgs = [
|
|
"\${qtWrapperArgs[@]}"
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
pyqt5
|
|
asyncua
|
|
opcua-widgets
|
|
numpy
|
|
pyqtgraph
|
|
];
|
|
|
|
#This test uses a deprecated libarby, when updating the package check if the test was updated as well
|
|
doCheck = false;
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
name = "opcua-client";
|
|
exec = "opcua-client";
|
|
comment = "OPC UA Client";
|
|
type = "Application";
|
|
#no icon because the app dosn't have one
|
|
desktopName = "opcua-client";
|
|
terminal = false;
|
|
categories = [ "Utility" ];
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "OPC UA GUI Client";
|
|
homepage = "https://github.com/FreeOpcUa/opcua-client-gui";
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
mainProgram = "opcua-client";
|
|
};
|
|
}
|