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

36 lines
570 B
Nix
Raw Permalink Normal View History

2022-12-04 21:23:27 +01:00
{
stdenv,
lib,
cmake,
qtbase,
2023-09-06 20:36:48 +02:00
qtwayland,
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;
2023-04-10 13:51:52 +02:00
nativeBuildInputs = [
cmake
wrapQtAppsHook
makeShellWrapper
];
buildInputs = [
qtbase
2023-09-06 20:36:48 +02:00
qtwayland
2023-04-10 13:51:52 +02:00
];
dontWrapQtApps = true;
postInstall = ''
wrapProgramShell $out/bin/hyprland-share-picker \
"''${qtWrapperArgs[@]}" \
--prefix PATH ":" ${lib.makeBinPath [slurp hyprland]}
'';
2022-12-04 21:23:27 +01:00
}