nix: fix picker not found

This commit is contained in:
Mihai Fufezan 2022-12-05 03:01:31 +02:00
parent ac442cc1b2
commit af840a9e09
No known key found for this signature in database
GPG key ID: 5899325F2F120900
2 changed files with 2 additions and 7 deletions

View file

@ -8,13 +8,11 @@
pkg-config, pkg-config,
wayland-protocols, wayland-protocols,
wayland-scanner, wayland-scanner,
grim,
hyprland-protocols, hyprland-protocols,
inih, inih,
libdrm, libdrm,
mesa, mesa,
pipewire, pipewire,
slurp,
systemd, systemd,
wayland, wayland,
libsForQt5, libsForQt5,
@ -44,9 +42,7 @@ in
]; ];
postInstall = '' postInstall = ''
ln -s ${hyprland-share-picker.outPath}/bin $out/ wrapProgram $out/libexec/xdg-desktop-portal-hyprland --prefix PATH ":" ${lib.makeBinPath [hyprland-share-picker]}
wrapProgram $out/libexec/xdg-desktop-portal-hyprland --prefix PATH ":" ${lib.makeBinPath [grim slurp]}
''; '';
meta = with lib; { meta = with lib; {

View file

@ -5,7 +5,6 @@
qtbase, qtbase,
makeShellWrapper, makeShellWrapper,
wrapQtAppsHook, wrapQtAppsHook,
grim,
slurp, slurp,
version ? "git", version ? "git",
... ...
@ -23,6 +22,6 @@ stdenv.mkDerivation {
postInstall = '' postInstall = ''
wrapProgramShell $out/bin/hyprland-share-picker \ wrapProgramShell $out/bin/hyprland-share-picker \
"''${qtWrapperArgs[@]}" \ "''${qtWrapperArgs[@]}" \
--prefix PATH ":" ${lib.makeBinPath [grim slurp]} --prefix PATH ":" ${lib.makeBinPath [slurp]}
''; '';
} }