fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 python3,
4 qt5,
5}:
6
7let
8 python = python3.override {
9 self = python;
10 packageOverrides = self: super: {
11 numpy = super.numpy_1;
12 };
13 };
14in
15python.pkgs.buildPythonApplication rec {
16 pname = "linien-gui";
17 pyproject = true;
18
19 inherit (python.pkgs.linien-common) src version;
20
21 sourceRoot = "${src.name}/linien-gui";
22
23 build-system = with python.pkgs; [
24 setuptools
25 ];
26 nativeBuildInputs = [
27 qt5.wrapQtAppsHook
28 ];
29
30 # Makes qt-wayland appear in the qt paths injected by the wrapper - helps users
31 # with `QT_QPA_PLATFORM=wayland` in their environment.
32 buildInputs = [
33 qt5.qtwayland
34 ];
35
36 dependencies = with python.pkgs; [
37 appdirs
38 click
39 pyqtgraph
40 pyqt5
41 superqt
42 linien-client
43 requests
44 ];
45
46 dontWrapQtApps = true;
47
48 preFixup = ''
49 makeWrapperArgs+=("''${qtWrapperArgs[@]}")
50 '';
51
52 passthru = {
53 # Useful for creating .withPackages environments, see NOTE near
54 # `python3Packages.linien-common.meta.broken`.
55 inherit python;
56 };
57
58 meta = {
59 description = "Graphical user interface of the Linien spectroscopy lock application";
60 mainProgram = "linien";
61 homepage = "https://github.com/linien-org/linien/tree/develop/linien-gui";
62 changelog = "https://github.com/linien-org/linien/blob/v${version}/CHANGELOG.md";
63 license = lib.licenses.gpl3Plus;
64 maintainers = with lib.maintainers; [
65 fsagbuya
66 doronbehar
67 ];
68 };
69}