mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib
|
|
, python3
|
|
, qt5
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "linien-gui";
|
|
pyproject = true;
|
|
|
|
inherit (python3.pkgs.linien-common) src version;
|
|
|
|
sourceRoot = "${src.name}/linien-gui";
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
setuptools
|
|
] ++ [
|
|
qt5.wrapQtAppsHook
|
|
];
|
|
|
|
# Makes qt-wayland appear in the qt paths injected by the wrapper - helps users
|
|
# with `QT_QPA_PLATFORM=wayland` in their environment.
|
|
buildInputs = [
|
|
qt5.qtwayland
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
appdirs
|
|
click
|
|
pyqtgraph
|
|
pyqt5
|
|
superqt
|
|
linien-client
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Graphical user interface of the Linien spectroscopy lock application";
|
|
mainProgram = "linien";
|
|
homepage = "https://github.com/linien-org/linien/tree/develop/linien-gui";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ fsagbuya doronbehar ];
|
|
};
|
|
}
|