nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.2 kB view raw
1{ 2 coreutils, 3 fetchFromGitHub, 4 gawk, 5 hyprland, 6 jq, 7 lib, 8 libnotify, 9 makeWrapper, 10 scdoc, 11 stdenvNoCC, 12 util-linux, 13 withHyprland ? true, 14}: 15 16stdenvNoCC.mkDerivation rec { 17 pname = "hdrop"; 18 version = "0.7.8"; 19 20 src = fetchFromGitHub { 21 owner = "Schweber"; 22 repo = "hdrop"; 23 rev = "v${version}"; 24 hash = "sha256-JlfSGJBN3aJnZcN8aY464mmADP5boenGQzOxv2sswGc="; 25 }; 26 27 nativeBuildInputs = [ 28 makeWrapper 29 scdoc 30 ]; 31 32 makeFlags = [ "PREFIX=$(out)" ]; 33 34 postInstall = '' 35 wrapProgram $out/bin/hdrop --prefix PATH ':' \ 36 "${ 37 lib.makeBinPath ( 38 [ 39 coreutils 40 util-linux 41 jq 42 libnotify 43 gawk 44 ] 45 ++ lib.optional withHyprland hyprland 46 ) 47 }" 48 ''; 49 50 meta = { 51 description = "Emulate 'tdrop' in Hyprland (run, show and hide specific programs per keybind)"; 52 homepage = "https://github.com/Schweber/hdrop"; 53 changelog = "https://github.com/Schweber/hdrop/releases/tag/v${version}"; 54 license = lib.licenses.agpl3Only; 55 platforms = lib.platforms.linux; 56 maintainers = with lib.maintainers; [ Schweber ]; 57 mainProgram = "hdrop"; 58 }; 59}