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