blob: 92621e930dd137ac79c40e182d667d9a70c5b3da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ stdenv, fetchgit, pkgconfig, writeText, libX11, ncurses, libXft, harfbuzzFull }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "st";
src = fetchgit {
url = "https://github.com/LukeSmithXYZ/st";
rev = "13b3c631be13849cd80bef76ada7ead93ad48dc6";
sha256 = "009za6dv8cr2brs31sjqixnkk3jwm8k62qk38sz4ggby3ps9dzf4";
};
nativeBuildInputs = [ pkgconfig ncurses ];
buildInputs = [ libX11 libXft harfbuzzFull ];
patchPhase = ''
sed -i 's/alpha = 0.8/alpha = 0.95/' config.h
'';
installPhase = ''
sed -i '/man/d' Makefile
sed -i '/tic/d' Makefile
TERMINFO=$out/share/terminfo make PREFIX=$out install
'';
meta = {
homepage = "https://github.com/LukeSmithXYZ/st";
description = "Luke's fork of the suckless simple terminal (st) with vim bindings and Xresource compatibility.";
license = licenses.mit;
platforms = platforms.linux;
};
}
|