mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
44 lines
920 B
Nix
44 lines
920 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 = "Glorified WM-Independent Dropdown Creator";
|
|
mainProgram = "tdrop";
|
|
homepage = "https://github.com/noctuid/tdrop";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|