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.6.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Schweber";
|
||
|
repo = "hdrop";
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-0GkZBqpORJqhhC19bsJHvkbHKOno1ZyBBA7nhzfqLZw=";
|
||
|
};
|
||
|
|
||
|
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 = with lib; {
|
||
|
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 = licenses.agpl3Only;
|
||
|
platforms = platforms.linux;
|
||
|
maintainers = with maintainers; [ Schweber ];
|
||
|
mainProgram = "hdrop";
|
||
|
};
|
||
|
}
|