lol
1{ stdenv, fetchurl, pkgconfig, writeText
2, ncurses, wayland, wld, libxkbcommon, fontconfig, pixman
3, conf? null}:
4
5with stdenv.lib;
6
7stdenv.mkDerivation rec {
8 name = "st-wayland-${version}";
9 version = "git-2015-08-29";
10 rev = "61b47b76a09599c8093214e28c48938f5b424daa";
11
12 src = fetchurl {
13 url = "https://github.com/michaelforney/st/archive/${rev}.tar.gz";
14 sha256 = "7164da135f02405dba5ae3131dfd896e072df29ac6c0928f3b887beffb8a7d97";
15 };
16
17 configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
18 preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
19
20 buildInputs = [ pkgconfig ncurses wayland wld libxkbcommon fontconfig pixman ];
21
22 NIX_LDFLAGS = "-lfontconfig";
23
24 installPhase = ''
25 TERMINFO=$out/share/terminfo make install PREFIX=$out
26 '';
27
28 meta = {
29 homepage = http://st.suckless.org/;
30 license = stdenv.lib.licenses.mit;
31 maintainers = with maintainers; [ ];
32 platforms = with platforms; linux;
33 };
34}