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

35 lines
549 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;
2023-04-10 13:51:52 +02:00
nativeBuildInputs = [
cmake
wrapQtAppsHook
makeShellWrapper
];
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
}