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

View file

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