{ lib, stdenv, fetchzip, fontconfig, libX11, libXcursor, libXext, libXft, ncurses, pkg-config, }: stdenv.mkDerivation rec { pname = "st"; version = "tj-0.9.2.1"; src = fetchzip { url = "https://git.tjkeller.xyz/${pname}/snapshot/${pname}-${version}.tar.xz"; sha256 = "sha256-wGssX7WTKGSKN+NeDqJhZhyMamAhtjo19HeFlBBImkk="; }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ fontconfig libX11 libXcursor libXext libXft ncurses ]; installPhase = '' runHook preInstall TERMINFO=$out/share/terminfo make install PREFIX=$out runHook postInstall ''; meta = with lib; { homepage = "https://git.tjkeller.xyz/st"; description = "My st with various patches"; mainProgram = "st"; license = licenses.mit; maintainers = [ maintainers.tjkeller ]; }; }