Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
coreutils,
|
|
fetchFromGitHub,
|
|
gawk,
|
|
hyprland,
|
|
jq,
|
|
lib,
|
|
libnotify,
|
|
makeWrapper,
|
|
scdoc,
|
|
stdenvNoCC,
|
|
util-linux,
|
|
withHyprland ? true,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "hdrop";
|
|
version = "0.7.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Schweber";
|
|
repo = "hdrop";
|
|
rev = "v${version}";
|
|
hash = "sha256-JlfSGJBN3aJnZcN8aY464mmADP5boenGQzOxv2sswGc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
scdoc
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/hdrop --prefix PATH ':' \
|
|
"${
|
|
lib.makeBinPath (
|
|
[
|
|
coreutils
|
|
util-linux
|
|
jq
|
|
libnotify
|
|
gawk
|
|
]
|
|
++ lib.optional withHyprland hyprland
|
|
)
|
|
}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Emulate 'tdrop' in Hyprland (run, show and hide specific programs per keybind)";
|
|
homepage = "https://github.com/Schweber/hdrop";
|
|
changelog = "https://github.com/Schweber/hdrop/releases/tag/v${version}";
|
|
license = lib.licenses.agpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ Schweber ];
|
|
mainProgram = "hdrop";
|
|
};
|
|
}
|