nixpkgs/pkgs/applications/misc/tdrop/default.nix
2022-08-02 04:45:21 +00:00

44 lines
913 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 = "A Glorified WM-Independent Dropdown Creator";
homepage = "https://github.com/noctuid/tdrop";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}