nixpkgs/pkgs/by-name/hd/hdrop/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenvNoCC
, fetchFromGitHub
, makeWrapper
, scdoc
, coreutils
, util-linux
, jq
, libnotify
, withHyprland ? true
, hyprland
2024-03-02 16:55:45 +00:00
, gawk
}:
stdenvNoCC.mkDerivation rec {
pname = "hdrop";
2024-03-02 16:55:45 +00:00
version = "0.5.0";
src = fetchFromGitHub {
owner = "Schweber";
repo = "hdrop";
rev = "v${version}";
2024-03-02 16:55:45 +00:00
hash = "sha256-iginpMlgANSPWgFxNC2TYMjf2NKSSzzrjIN8lIsAvX8=";
};
nativeBuildInputs = [
makeWrapper
scdoc
];
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/bin/hdrop --prefix PATH ':' \
"${lib.makeBinPath ([
coreutils
util-linux
jq
libnotify
2024-03-02 16:55:45 +00:00
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}";
2024-03-19 12:26:06 +00:00
license = licenses.agpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ Schweber ];
mainProgram = "hdrop";
};
}