diff options
author | Mihai Fufezan <fufexan@protonmail.com> | 2023-09-06 22:40:04 +0300 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-09-14 11:03:04 +0200 |
commit | 4dd9e988a52d21e6159c17a39704e5fc932c5b4b (patch) | |
tree | c17de2be1d4894ab7c67dbed6003af91d20a82a1 /pkgs/applications/window-managers | |
parent | 8f4341b14454eb15477c3bb8403ae30f27cde280 (diff) | |
download | nixpkgs-4dd9e988a52d21e6159c17a39704e5fc932c5b4b.tar nixpkgs-4dd9e988a52d21e6159c17a39704e5fc932c5b4b.tar.gz nixpkgs-4dd9e988a52d21e6159c17a39704e5fc932c5b4b.tar.bz2 nixpkgs-4dd9e988a52d21e6159c17a39704e5fc932c5b4b.tar.lz nixpkgs-4dd9e988a52d21e6159c17a39704e5fc932c5b4b.tar.xz nixpkgs-4dd9e988a52d21e6159c17a39704e5fc932c5b4b.tar.zst nixpkgs-4dd9e988a52d21e6159c17a39704e5fc932c5b4b.zip |
xdg-desktop-portal-hyprland: 0.5.0 -> unstable-2023-09-10
Diffstat (limited to 'pkgs/applications/window-managers')
3 files changed, 39 insertions, 79 deletions
diff --git a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix index ece21bc53a7..dd0882edc29 100644 --- a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix +++ b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix @@ -1,55 +1,76 @@ { lib , stdenv , fetchFromGitHub -, makeWrapper , meson , ninja , pkg-config +, wayland-scanner +, makeWrapper +, wrapQtAppsHook , hyprland-protocols -, hyprland-share-picker -, inih , libdrm -, libuuid , mesa , pipewire +, qtbase +, qttools +, qtwayland +, sdbus-cpp , systemd , wayland , wayland-protocols -, wayland-scanner +, hyprland +, slurp }: -let - source = import ./source.nix { inherit lib fetchFromGitHub wayland; }; -in stdenv.mkDerivation { pname = "xdg-desktop-portal-hyprland"; - inherit (source) src version meta; + version = "unstable-2023-09-10"; + + src = fetchFromGitHub { + owner = "hyprwm"; + repo = "xdg-desktop-portal-hyprland"; + rev = "aca51609d4c415b30e88b96c6f49f0142cbcdae7"; + hash = "sha256-RF6LXm4J6mBF3B8VcQuABuU4g4tCPHgMYJQSoJ3DW+8="; + }; - strictDeps = true; - depsBuildBuild = [ pkg-config ]; nativeBuildInputs = [ - makeWrapper meson ninja pkg-config wayland-scanner + makeWrapper + wrapQtAppsHook ]; + buildInputs = [ hyprland-protocols - inih libdrm - libuuid mesa pipewire + qtbase + qttools + qtwayland + sdbus-cpp systemd wayland wayland-protocols ]; - mesonFlags = [ - "-Dsd-bus-provider=libsystemd" - ]; + dontWrapQtApps = true; postInstall = '' - wrapProgram $out/libexec/xdg-desktop-portal-hyprland --prefix PATH ":" ${lib.makeBinPath [hyprland-share-picker]} + wrapProgramShell $out/bin/hyprland-share-picker \ + "''${qtWrapperArgs[@]}" \ + --prefix PATH ":" ${lib.makeBinPath [slurp hyprland]} + + wrapProgramShell $out/libexec/xdg-desktop-portal-hyprland \ + --prefix PATH ":" ${lib.makeBinPath [(placeholder "out")]} ''; + + meta = with lib; { + homepage = "https://github.com/hyprwm/xdg-desktop-portal-hyprland"; + description = "xdg-desktop-portal backend for Hyprland"; + license = licenses.bsd3; + maintainers = with maintainers; [ fufexan ]; + platforms = platforms.linux; + }; } diff --git a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/hyprland-share-picker.nix b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/hyprland-share-picker.nix deleted file mode 100644 index 4712d6d2d0a..00000000000 --- a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/hyprland-share-picker.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ stdenv -, lib -, fetchFromGitHub -, cmake -, qtbase -, makeShellWrapper -, wrapQtAppsHook -, hyprland -, grim -, slurp -, wayland -}: -let - source = import ./source.nix { inherit lib fetchFromGitHub wayland; }; -in -stdenv.mkDerivation { - pname = "hyprland-share-picker"; - inherit (source) version; - - src = "${source.src}/hyprland-share-picker"; - - nativeBuildInputs = [ cmake wrapQtAppsHook makeShellWrapper ]; - buildInputs = [ qtbase ]; - - dontWrapQtApps = true; - - postInstall = '' - wrapProgramShell $out/bin/hyprland-share-picker \ - "''${qtWrapperArgs[@]}" \ - --prefix PATH ":" ${lib.makeBinPath [grim slurp hyprland]} - ''; - - meta = source.meta // { - description = "Helper program for xdg-desktp-portal-hyprland"; - }; -} diff --git a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/source.nix b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/source.nix deleted file mode 100644 index cb4c3efad13..00000000000 --- a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/source.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib -, fetchFromGitHub -, wayland -}: -let - version = "0.5.0"; -in -{ - inherit version; - - src = fetchFromGitHub { - owner = "hyprwm"; - repo = "xdg-desktop-portal-hyprland"; - rev = "v${version}"; - hash = "sha256-C5AO0KnyAFJaCkOn+5nJfWm0kyiPn/Awh0lKTjhgr7Y="; - }; - - meta = with lib; { - description = "xdg-desktop-portal backend for Hyprland"; - homepage = "https://github.com/hyprwm/xdg-desktop-portal-hyprland"; - license = licenses.mit; - maintainers = with maintainers; [ fufexan ]; - platforms = wayland.meta.platforms; - }; -} |