@@ -0,0 +1,33 @@
1+{ stdenv, lib, fetchFromGitHub, makeWrapper
2+, xwininfo, xdotool, xprop }:
3+
4+stdenv.mkDerivation rec {
5+ pname = "tdrop";
6+ version = "unstable-2018-11-13";
7+
8+ src = fetchFromGitHub {
9+ owner = "noctuid";
10+ repo = "tdrop";
11+ rev = "198795c0d2573a31979330d6a2ae946eb81deebf";
12+ sha256 = "1fhibqgmls64mylcb6q46ipmg1q6pvaqm26vz933gqav6cqsbdzs";
13+ };
14+
15+ dontBuild = true;
16+
17+ installFlags = [ "PREFIX=$(out)" ];
18+
19+ postInstall = ''
20+ wrapProgram $out/bin/tdrop \
21+ --prefix PATH : ${lib.makeBinPath [ xwininfo xdotool xprop ]}
22+ '';
23+
24+ nativeBuildInputs = [ makeWrapper ];
25+
26+ meta = with stdenv.lib; {
27+ description = "A Glorified WM-Independent Dropdown Creator";
28+ homepage = https://github.com/noctuid/tdrop;
29+ license = licenses.bsd2;
30+ platforms = platforms.linux;
31+ maintainers = with maintainers; [ wedens ];
32+ };
33+}