mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-02 15:35:58 +01:00
35 lines
570 B
Nix
35 lines
570 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
cmake,
|
|
qtbase,
|
|
qtwayland,
|
|
makeShellWrapper,
|
|
wrapQtAppsHook,
|
|
hyprland,
|
|
slurp,
|
|
version ? "git",
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "hyprland-share-picker";
|
|
inherit version;
|
|
src = ../hyprland-share-picker;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
makeShellWrapper
|
|
];
|
|
buildInputs = [
|
|
qtbase
|
|
qtwayland
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
postInstall = ''
|
|
wrapProgramShell $out/bin/hyprland-share-picker \
|
|
"''${qtWrapperArgs[@]}" \
|
|
--prefix PATH ":" ${lib.makeBinPath [slurp hyprland]}
|
|
'';
|
|
}
|