about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-08-09 16:56:49 +0200
committerGitHub <noreply@github.com>2020-08-09 16:56:49 +0200
commitd34115b59e0f370f295593d96ea89ddff8957554 (patch)
treee89e84a6284e861db70f32aa376f75938163a1e0
parent7b8b24292f84c982bd7b67ce2d7980561662fcc0 (diff)
downloadpnpkgs-d34115b59e0f370f295593d96ea89ddff8957554.tar.gz
pnpkgs-d34115b59e0f370f295593d96ea89ddff8957554.zip
Create default.nix
-rw-r--r--pkgs/st/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/st/default.nix b/pkgs/st/default.nix
new file mode 100644
index 0000000..cee6db5
--- /dev/null
+++ b/pkgs/st/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, pkgconfig, writeText, libX11, ncurses, libXft }:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+  name = "st";
+
+  src = fetchgit {
+    url = "https://github.com/LukeSmithXYZ/st";
+    rev = "de6fd85eeb544548ed5ad23a639eedd6af510036";
+  };
+
+  nativeBuildInputs = [ pkgconfig ncurses ];
+  buildInputs = [ libX11 libXft ];
+
+  installPhase = ''
+    TERMINFO=$out/share/terminfo make install PREFIX=$out
+  '';
+
+  meta = {
+    homepage = "https://st.suckless.org/";
+    description = "Simple Terminal for X from Suckless.org Community";
+    license = licenses.mit;
+    maintainers = with maintainers; [ pniedzwiedzinski ];
+    platforms = platforms.linux;
+  };
+}