xdg-desktop-portal-hyprland/nix/hyprland-share-picker.nix

29 lines
525 B
Nix
Raw Normal View History

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