2019-01-02 16:19:06 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
2020-08-09 03:22:32 +00:00
|
|
|
, xwininfo, xdotool, xprop, gawk, coreutils
|
|
|
|
, gnugrep, procps }:
|
2019-01-02 16:19:06 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-01-02 16:19:06 +00:00
|
|
|
pname = "tdrop";
|
2020-08-09 03:22:32 +00:00
|
|
|
version = "unstable-2020-05-14";
|
2019-01-02 16:19:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "noctuid";
|
|
|
|
repo = "tdrop";
|
2020-08-09 03:22:32 +00:00
|
|
|
rev = "a9f2862515e5c190ac61d394e7fe7e1039871b89";
|
|
|
|
sha256 = "1zxhihgba33k8byjsracsyhby9qpdngbly6c8hpz3pbsyag5liwc";
|
2019-01-02 16:19:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2020-08-09 03:22:32 +00:00
|
|
|
postInstall = let
|
|
|
|
binPath = lib.makeBinPath [
|
|
|
|
xwininfo
|
|
|
|
xdotool
|
|
|
|
xprop
|
|
|
|
gawk
|
|
|
|
coreutils
|
|
|
|
gnugrep
|
|
|
|
procps
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
wrapProgram $out/bin/tdrop --prefix PATH : ${binPath}
|
2019-01-02 16:19:06 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-02 16:19:06 +00:00
|
|
|
description = "A Glorified WM-Independent Dropdown Creator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/noctuid/tdrop";
|
2019-01-02 16:19:06 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wedens ];
|
|
|
|
};
|
|
|
|
}
|