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