nixpkgs/pkgs/applications/misc/tdrop/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

45 lines
938 B
Nix

{ stdenv, lib, fetchFromGitHub, makeWrapper
, xwininfo, xdotool, xprop, gawk, coreutils
, gnugrep, procps }:
stdenv.mkDerivation rec {
pname = "tdrop";
version = "0.5.0";
src = fetchFromGitHub {
owner = "noctuid";
repo = "tdrop";
rev = version;
sha256 = "sha256-fHvGXaZL7MMvTnkap341B79PDDo2lOVPPcOH4AX/zXo=";
};
dontBuild = true;
installFlags = [ "PREFIX=$(out)" ];
postInstall = let
binPath = lib.makeBinPath [
xwininfo
xdotool
xprop
gawk
coreutils
gnugrep
procps
];
in ''
wrapProgram $out/bin/tdrop --prefix PATH : ${binPath}
'';
nativeBuildInputs = [ makeWrapper ];
meta = with lib; {
description = "Glorified WM-Independent Dropdown Creator";
mainProgram = "tdrop";
homepage = "https://github.com/noctuid/tdrop";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}