2015-10-23 23:32:20 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, writeText
|
|
|
|
, ncurses, wayland, wld, libxkbcommon, fontconfig, pixman
|
2016-04-12 20:44:07 +00:00
|
|
|
, conf ? null, patches ? [] }:
|
2015-10-23 23:32:20 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "st-wayland-${version}";
|
|
|
|
version = "git-2015-08-29";
|
|
|
|
rev = "61b47b76a09599c8093214e28c48938f5b424daa";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/michaelforney/st/archive/${rev}.tar.gz";
|
|
|
|
sha256 = "7164da135f02405dba5ae3131dfd896e072df29ac6c0928f3b887beffb8a7d97";
|
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
buildInputs = [ ncurses wayland wld libxkbcommon fontconfig pixman ];
|
2015-10-23 23:32:20 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lfontconfig";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
TERMINFO=$out/share/terminfo make install PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://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;
|
|
|
|
};
|
|
|
|
}
|