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