xdg-desktop-portal-hyprland/nix/hyprland-share-picker.nix
2022-12-05 03:05:38 +02:00

27 lines
504 B
Nix

{
stdenv,
lib,
cmake,
qtbase,
makeShellWrapper,
wrapQtAppsHook,
slurp,
version ? "git",
...
}:
stdenv.mkDerivation {
pname = "hyprland-share-picker";
inherit version;
src = ../hyprland-share-picker;
nativeBuildInputs = [cmake wrapQtAppsHook makeShellWrapper];
buildInputs = [qtbase];
dontWrapQtApps = true;
postInstall = ''
wrapProgramShell $out/bin/hyprland-share-picker \
"''${qtWrapperArgs[@]}" \
--prefix PATH ":" ${lib.makeBinPath [slurp]}
'';
}