summaryrefslogtreecommitdiff
path: root/derivations/st
diff options
context:
space:
mode:
Diffstat (limited to 'derivations/st')
-rw-r--r--derivations/st/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/derivations/st/default.nix b/derivations/st/default.nix
new file mode 100644
index 0000000..cf463ab
--- /dev/null
+++ b/derivations/st/default.nix
@@ -0,0 +1,47 @@
+{
+ lib,
+ stdenv,
+ fontconfig,
+ libX11,
+ libXext,
+ libXft,
+ ncurses,
+ pkg-config,
+}:
+
+stdenv.mkDerivation rec {
+ pname = "st";
+ version = "tj-0.9.2.0";
+
+ src = pkgs.fetchZip {
+ url = "https://git.tjkeller.xyz/${pname}/snapshot/${pname}-${version}.tar.xz";
+ sha256 = "sha256-xsUHdmicHX/fQQgojVjWfzI82e4NezkmlACOpdPxLE0=";
+ };
+
+ nativeBuildInputs = [
+ pkg-config
+ ];
+ buildInputs = [
+ fontconfig
+ libX11
+ libXext
+ libXft
+ ncurses
+ ];
+
+ installPhase = ''
+ runHook preInstall
+
+ TERMINFO=$out/share/terminfo make install PREFIX=$out
+
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ homepage = "https://git.tjkeller.xyz/st";
+ description = "My st with various patches";
+ mainProgram = "st";
+ license = licenses.mit;
+ maintainers = [ maintainers.tjkeller ];
+ };
+}