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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.5.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;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-fHvGXaZL7MMvTnkap341B79PDDo2lOVPPcOH4AX/zXo=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Glorified WM-Independent Dropdown Creator";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tdrop";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/noctuid/tdrop";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|