2017-12-21 16:16:19 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, writeText
|
|
|
|
, ncurses, wayland, wayland-protocols, wld, libxkbcommon, fontconfig, pixman
|
|
|
|
, conf, patches }:
|
2015-10-24 00:32:20 +01: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-24 00:32:20 +01:00
|
|
|
};
|
|
|
|
|
2016-04-12 21:44:07 +01:00
|
|
|
inherit patches;
|
|
|
|
|
2015-10-24 00:32:20 +01:00
|
|
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
|
|
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-12-21 16:16:19 +00:00
|
|
|
buildInputs = [ ncurses wayland wayland-protocols wld libxkbcommon fontconfig pixman ];
|
2015-10-24 00:32:20 +01: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-24 00:32:20 +01:00
|
|
|
meta = {
|
2018-04-11 14:09:51 +01:00
|
|
|
homepage = https://st.suckless.org/;
|
2017-07-11 17:25:18 +01:00
|
|
|
license = licenses.mit;
|
2015-10-24 00:32:20 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|