dot_testing/builds/st.nix

40 lines
706 B
Nix
Raw Normal View History

2023-07-09 17:21:27 -05:00
{ stdenv
, lib
, fetchgit
, pkg-config
, libX11
, libXft
, fontconfig
, freetype
, ncurses
2024-12-25 07:29:11 -06:00
, fantasque-sans-mono
, lightMode ? false
2023-07-09 17:21:27 -05:00
, 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 = lib.optionalString (lightMode == true) "cp lightmode.h colors.h;" +
''
2023-07-09 17:21:27 -05:00
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;
};
}