2023-07-09 17:21:27 -05:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchgit
|
|
|
|
, pkg-config
|
|
|
|
, libX11
|
|
|
|
, libXft
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, ncurses
|
|
|
|
, extraLibs ? [ ]
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "st";
|
2024-01-15 03:52:45 -06:00
|
|
|
version = "1.02";
|
2023-07-09 17:21:27 -05:00
|
|
|
|
2024-03-24 20:39:08 -05:00
|
|
|
src = ./st;
|
2023-07-09 17:21:27 -05:00
|
|
|
|
2024-01-09 08:05:49 -06:00
|
|
|
nativeBuildInputs = [ pkg-config fontconfig freetype ncurses ];
|
2023-07-09 17:21:27 -05:00
|
|
|
buildInputs = [ libX11 libXft ] ++ extraLibs;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${pname} $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Customized builds of the st terminal emulator";
|
|
|
|
homepage = "https://git.beepboop.systems/rndusr/st";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|