diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2024-06-12 20:22:01 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 20:22:01 -0300 |
commit | 29616b7af32712d81aa5d3ba4c8897ef5a6d77a8 (patch) | |
tree | b3aff84405df18fe7ddf2923739ecb5edf779040 /pkgs/applications/misc | |
parent | 3263ad4cb0a501f2f899ad2f1fd741fab425c527 (diff) | |
parent | 45415110232161dd90e986095fa5a9fb1fbd6be9 (diff) |
Merge pull request #318899 from ulrikstrid/ulrikstrid--streamdeck-ui-4_1_2
streamdeck-ui: 3.1.0 -> 4.1.2
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/streamdeck-ui/default.nix | 106 | ||||
-rw-r--r-- | pkgs/applications/misc/streamdeck-ui/update-pillow.patch | 13 |
2 files changed, 0 insertions, 119 deletions
diff --git a/pkgs/applications/misc/streamdeck-ui/default.nix b/pkgs/applications/misc/streamdeck-ui/default.nix deleted file mode 100644 index f8ecf3694e511..0000000000000 --- a/pkgs/applications/misc/streamdeck-ui/default.nix +++ /dev/null @@ -1,106 +0,0 @@ -{ lib -, python3Packages -, fetchFromGitHub -, copyDesktopItems -, writeText -, makeDesktopItem -, wrapGAppsHook3 -, xvfb-run -, qt6 -}: - -python3Packages.buildPythonApplication rec { - pname = "streamdeck-ui"; - version = "3.1.0"; - - src = fetchFromGitHub { - repo = "streamdeck-linux-gui"; - owner = "streamdeck-linux-gui"; - rev = "v${version}"; - sha256 = "sha256-AIE9j022L4WSlHBAu3TT5uE4Ilgk/jYSmU03K8Hs8xY="; - }; - - patches = [ - # nixpkgs has a newer pillow version - ./update-pillow.patch - ]; - - desktopItems = let - common = { - name = "streamdeck-ui"; - desktopName = "Stream Deck UI"; - icon = "streamdeck-ui"; - exec = "streamdeck"; - comment = "UI for the Elgato Stream Deck"; - categories = [ "Utility" ]; - }; - in builtins.map makeDesktopItem [ - common - (common // { - name = "${common.name}-noui"; - exec = "${common.exec} --no-ui"; - noDisplay = true; - }) - ]; - - postInstall = - let - udevRules = '' - SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", TAG+="uaccess" - ''; - in - '' - mkdir -p $out/lib/systemd/user - substitute scripts/streamdeck.service $out/lib/systemd/user/streamdeck.service \ - --replace '<path to streamdeck>' $out/bin/streamdeck - - mkdir -p "$out/etc/udev/rules.d" - cp ${writeText "70-streamdeck.rules" udevRules} $out/etc/udev/rules.d/70-streamdeck.rules - - mkdir -p "$out/share/pixmaps" - cp streamdeck_ui/logo.png $out/share/pixmaps/streamdeck-ui.png - ''; - - dontWrapQtApps = true; - dontWrapGApps = true; - makeWrapperArgs = [ "\${qtWrapperArgs[@]}" "\${gappsWrapperArgs[@]}"]; - - format = "pyproject"; - - nativeBuildInputs = [ - python3Packages.poetry-core - copyDesktopItems - qt6.wrapQtAppsHook - wrapGAppsHook3 - ]; - - propagatedBuildInputs = with python3Packages; [ - setuptools - filetype - cairosvg - pillow - pynput - pyside6 - streamdeck - xlib - ] ++ lib.optionals stdenv.isLinux [ - qt6.qtwayland - ]; - - nativeCheckInputs = [ - xvfb-run - python3Packages.pytest - ]; - - checkPhase = '' - xvfb-run pytest tests - ''; - - meta = with lib; { - description = "Linux compatible UI for the Elgato Stream Deck"; - homepage = "https://streamdeck-linux-gui.github.io/streamdeck-linux-gui/"; - license = licenses.mit; - mainProgram = "streamdeck"; - maintainers = with maintainers; [ majiir ]; - }; -} diff --git a/pkgs/applications/misc/streamdeck-ui/update-pillow.patch b/pkgs/applications/misc/streamdeck-ui/update-pillow.patch deleted file mode 100644 index 88945586628f1..0000000000000 --- a/pkgs/applications/misc/streamdeck-ui/update-pillow.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/pyproject.toml b/pyproject.toml -index 0aff29e..4371616 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -14,7 +14,7 @@ packages = [ - [tool.poetry.dependencies] - python = ">=3.8,<3.12" - streamdeck = "^0.9.3" --pillow = "^9.4.0" -+pillow = "^10.0.0" - pynput = "^1.7.6" - pyside6 = "^6.4.2" - CairoSVG = "^2.5.2" |