2017-12-21 16:16:19 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, writeText
|
|
|
|
, ncurses, wayland, wayland-protocols, wld, libxkbcommon, fontconfig, pixman
|
|
|
|
, conf, patches }:
|
2015-10-23 23:32:20 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-21 16:16:19 +00:00
|
|
|
name = "st-velox-${version}";
|
|
|
|
version = "git-2016-12-22";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michaelforney";
|
|
|
|
repo = "st";
|
|
|
|
rev = "b27f17da65f74b0a923952601873524e03b4d047";
|
|
|
|
sha256 = "17aa4bz5g14jvqghk2c8mw77hb8786s07pv814rmlk7nnsavmp3i";
|
2015-10-23 23:32:20 +00:00
|
|
|
};
|
|
|
|
|
2016-04-12 20:44:07 +00:00
|
|
|
inherit patches;
|
|
|
|
|
2015-10-23 23:32:20 +00:00
|
|
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
|
|
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-12-21 16:16:19 +00:00
|
|
|
buildInputs = [ ncurses wayland wayland-protocols wld libxkbcommon fontconfig pixman ];
|
2015-10-23 23:32:20 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lfontconfig";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
TERMINFO=$out/share/terminfo make install PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
2017-12-21 16:16:19 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-10-23 23:32:20 +00:00
|
|
|
meta = {
|
2018-04-11 13:09:51 +00:00
|
|
|
homepage = https://st.suckless.org/;
|
2017-07-11 16:25:18 +00:00
|
|
|
license = licenses.mit;
|
2015-10-23 23:32:20 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|