commit
1f3c762a95
2 changed files with 57 additions and 0 deletions
|
@ -16288,6 +16288,11 @@
|
||||||
githubId = 5104601;
|
githubId = 5104601;
|
||||||
name = "schnusch";
|
name = "schnusch";
|
||||||
};
|
};
|
||||||
|
Schweber = {
|
||||||
|
github = "Schweber";
|
||||||
|
githubId = 64630479;
|
||||||
|
name = "Schweber";
|
||||||
|
};
|
||||||
sciencentistguy = {
|
sciencentistguy = {
|
||||||
email = "jamie@quigley.xyz";
|
email = "jamie@quigley.xyz";
|
||||||
name = "Jamie Quigley";
|
name = "Jamie Quigley";
|
||||||
|
|
52
pkgs/by-name/hd/hdrop/package.nix
Executable file
52
pkgs/by-name/hd/hdrop/package.nix
Executable file
|
@ -0,0 +1,52 @@
|
||||||
|
{ lib
|
||||||
|
, stdenvNoCC
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeWrapper
|
||||||
|
, scdoc
|
||||||
|
, coreutils
|
||||||
|
, util-linux
|
||||||
|
, jq
|
||||||
|
, libnotify
|
||||||
|
, withHyprland ? true
|
||||||
|
, hyprland
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "hdrop";
|
||||||
|
version = "0.2.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Schweber";
|
||||||
|
repo = "hdrop";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-VsM1wPl8edAnZUvYw3IeOHw/XQ2pvbLt0v3G0B8+iSA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
scdoc
|
||||||
|
];
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/hdrop --prefix PATH ':' \
|
||||||
|
"${lib.makeBinPath ([
|
||||||
|
coreutils
|
||||||
|
util-linux
|
||||||
|
jq
|
||||||
|
libnotify
|
||||||
|
]
|
||||||
|
++ 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.agpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ Schweber ];
|
||||||
|
mainProgram = "hdrop";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue