about summary refs log tree commit diff
path: root/pkgs/applications/misc/st
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2015-10-24 01:32:20 +0200
committertg(x) <*@tg-x.net>2016-02-09 22:35:16 +0100
commite1bcc74135cacb0180255399e76d12ddad2acabe (patch)
tree9abf390bb75e820e08211bdae2426b0e5f34fbb2 /pkgs/applications/misc/st
parent4f07c88d467216d9692fefc951deb5cd3c4cc722 (diff)
downloadnixlib-e1bcc74135cacb0180255399e76d12ddad2acabe.tar
nixlib-e1bcc74135cacb0180255399e76d12ddad2acabe.tar.gz
nixlib-e1bcc74135cacb0180255399e76d12ddad2acabe.tar.bz2
nixlib-e1bcc74135cacb0180255399e76d12ddad2acabe.tar.lz
nixlib-e1bcc74135cacb0180255399e76d12ddad2acabe.tar.xz
nixlib-e1bcc74135cacb0180255399e76d12ddad2acabe.tar.zst
nixlib-e1bcc74135cacb0180255399e76d12ddad2acabe.zip
wayland window managers: orbment, sway, velox
Diffstat (limited to 'pkgs/applications/misc/st')
-rw-r--r--pkgs/applications/misc/st/wayland.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/misc/st/wayland.nix b/pkgs/applications/misc/st/wayland.nix
new file mode 100644
index 000000000000..ed7e0cf7ca1d
--- /dev/null
+++ b/pkgs/applications/misc/st/wayland.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, pkgconfig, writeText
+, ncurses, wayland, wld, libxkbcommon, fontconfig, pixman
+, conf? null}:
+
+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";
+  };
+
+  configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
+  preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
+
+  buildInputs = [ pkgconfig ncurses wayland wld libxkbcommon fontconfig pixman ];
+
+  NIX_LDFLAGS = "-lfontconfig";
+
+  installPhase = ''
+    TERMINFO=$out/share/terminfo make install PREFIX=$out
+  '';
+
+  meta = {
+    homepage = http://st.suckless.org/;
+    license = stdenv.lib.licenses.mit;
+    maintainers = with maintainers; [ ];
+    platforms = with platforms; linux;
+  };
+}