2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
2020-08-20 17:08:02 +00:00
|
|
|
, xwininfo, xdotool, xprop, gawk, coreutils
|
|
|
|
, gnugrep, procps }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-18 02:13:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tdrop";
|
2021-04-18 02:13:31 +00:00
|
|
|
version = "0.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "noctuid";
|
|
|
|
repo = "tdrop";
|
2021-04-18 02:13:31 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-1umHwzpv4J8rZ0c0q+2dPsEk4vhFB4UerwI8ctIJUZg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
postInstall = let
|
|
|
|
binPath = lib.makeBinPath [
|
|
|
|
xwininfo
|
|
|
|
xdotool
|
|
|
|
xprop
|
|
|
|
gawk
|
|
|
|
coreutils
|
|
|
|
gnugrep
|
|
|
|
procps
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
wrapProgram $out/bin/tdrop --prefix PATH : ${binPath}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Glorified WM-Independent Dropdown Creator";
|
|
|
|
homepage = "https://github.com/noctuid/tdrop";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wedens ];
|
|
|
|
};
|
|
|
|
}
|