Merge pull request #136744 from AndersonTorres/new-st

A plethora of ST forks

authored by

Anderson Torres and committed by
GitHub
674586d4 1869360d

+208 -13
+11 -10
pkgs/applications/terminal-emulators/st/default.nix
··· 2 2 , stdenv 3 3 , fetchurl 4 4 , pkg-config 5 - , writeText 6 - , libX11 7 - , ncurses 8 5 , fontconfig 9 6 , freetype 7 + , libX11 10 8 , libXft 9 + , ncurses 10 + , writeText 11 11 , conf ? null 12 12 , patches ? [ ] 13 13 , extraLibs ? [ ] 14 14 }: 15 15 16 - with lib; 17 - 18 16 stdenv.mkDerivation rec { 19 17 pname = "st"; 20 18 version = "0.8.4"; 21 19 22 20 src = fetchurl { 23 21 url = "https://dl.suckless.org/st/${pname}-${version}.tar.gz"; 24 - sha256 = "19j66fhckihbg30ypngvqc9bcva47mp379ch5vinasjdxgn3qbfl"; 22 + hash = "sha256-1C087OtNamXjLpClM249RG22EsP72evBeAvGyaAzRqY="; 25 23 }; 26 24 27 25 inherit patches; 28 26 29 - configFile = optionalString (conf != null) (writeText "config.def.h" conf); 27 + configFile = lib.optionalString (conf != null) 28 + (writeText "config.def.h" conf); 30 29 31 - postPatch = optionalString (conf != null) "cp ${configFile} config.def.h" 32 - + optionalString stdenv.isDarwin '' 30 + postPatch = lib.optionalString (conf != null) "cp ${configFile} config.def.h" 31 + + lib.optionalString stdenv.isDarwin '' 33 32 substituteInPlace config.mk --replace "-lrt" "" 34 33 ''; 35 34 ··· 52 51 53 52 installPhase = '' 54 53 runHook preInstall 54 + 55 55 TERMINFO=$out/share/terminfo make install PREFIX=$out 56 + 56 57 runHook postInstall 57 58 ''; 58 59 59 - meta = { 60 + meta = with lib; { 60 61 homepage = "https://st.suckless.org/"; 61 62 description = "Simple Terminal for X from Suckless.org Community"; 62 63 license = licenses.mit;
+14
pkgs/applications/terminal-emulators/st/lukesmithxyz-st/0000-makefile-fix-install.diff
··· 1 + diff -Naur old/Makefile new/Makefile 2 + --- old/Makefile 1969-12-31 21:00:01.000000000 -0300 3 + +++ new/Makefile 2021-09-06 00:10:26.972466947 -0300 4 + @@ -40,8 +40,8 @@ 5 + rm -rf st-$(VERSION) 6 + 7 + install: st 8 + - git submodule init 9 + - git submodule update 10 + +# git submodule init 11 + +# git submodule update 12 + mkdir -p $(DESTDIR)$(PREFIX)/bin 13 + cp -f st $(DESTDIR)$(PREFIX)/bin 14 + cp -f st-copyout $(DESTDIR)$(PREFIX)/bin
+56
pkgs/applications/terminal-emulators/st/lukesmithxyz-st/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fontconfig 5 + , harfbuzz 6 + , libX11 7 + , libXext 8 + , libXft 9 + , ncurses 10 + , pkg-config 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pname = "lukesmithxyz-st"; 15 + version = "0.0.0+unstable=2021-08-10"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "LukeSmithxyz"; 19 + repo = "st"; 20 + rev = "e053bd6036331cc7d14f155614aebc20f5371d3a"; 21 + hash = "sha256-WwjuNxWoeR/ppJxJgqD20kzrn1kIfgDarkTOedX/W4k="; 22 + }; 23 + 24 + nativeBuildInputs = [ 25 + pkg-config 26 + ]; 27 + buildInputs = [ 28 + fontconfig 29 + harfbuzz 30 + libX11 31 + libXext 32 + libXft 33 + ncurses 34 + ]; 35 + 36 + patches = [ 37 + # eliminate useless calls to git inside Makefile 38 + ./0000-makefile-fix-install.diff 39 + ]; 40 + 41 + installPhase = '' 42 + runHook preInstall 43 + 44 + TERMINFO=$out/share/terminfo make install PREFIX=$out 45 + 46 + runHook postInstall 47 + ''; 48 + 49 + meta = with lib; { 50 + homepage = "https://github.com/LukeSmithxyz/st"; 51 + description = "Luke Smith's fork of st"; 52 + license = licenses.mit; 53 + maintainers = with maintainers; [ AndersonTorres ]; 54 + platforms = platforms.linux; 55 + }; 56 + }
+49
pkgs/applications/terminal-emulators/st/mcaimi-st.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fontconfig 5 + , libX11 6 + , libXext 7 + , libXft 8 + , ncurses 9 + , pkg-config 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "mcaimi-st"; 14 + version = "0.0.0+unstable=2021-08-30"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "mcaimi"; 18 + repo = "st"; 19 + rev = "1a8cad03692ee6d32c03a136cdc76bdb169e15d8"; 20 + hash = "sha256-xyVEvD8s1J9Wj9NB4Gg+0ldvde7M8IVpzCOTttC1IY0="; 21 + }; 22 + 23 + nativeBuildInputs = [ 24 + pkg-config 25 + ]; 26 + buildInputs = [ 27 + fontconfig 28 + libX11 29 + libXext 30 + libXft 31 + ncurses 32 + ]; 33 + 34 + installPhase = '' 35 + runHook preInstall 36 + 37 + TERMINFO=$out/share/terminfo make install PREFIX=$out 38 + 39 + runHook postInstall 40 + ''; 41 + 42 + meta = with lib; { 43 + homepage = "https://github.com/gnotclub/xst"; 44 + description = "Suckless Terminal fork"; 45 + license = licenses.mit; 46 + maintainers = with maintainers; [ AndersonTorres ]; 47 + platforms = platforms.linux; 48 + }; 49 + }
+51
pkgs/applications/terminal-emulators/st/siduck76-st.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fontconfig 5 + , harfbuzz 6 + , libX11 7 + , libXext 8 + , libXft 9 + , ncurses 10 + , pkg-config 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pname = "siduck76-st"; 15 + version = "0.0.0+unstable=2021-08-20"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "siduck76"; 19 + repo = "st"; 20 + rev = "c9bda1de1f3f94ba507fa0eacc96d6a4f338637f"; 21 + hash = "sha256-5n+QkSlVhhku7adtl7TuWhDl3zdwFaXc7Ot1RaIN54A="; 22 + }; 23 + 24 + nativeBuildInputs = [ 25 + pkg-config 26 + ]; 27 + buildInputs = [ 28 + fontconfig 29 + harfbuzz 30 + libX11 31 + libXext 32 + libXft 33 + ncurses 34 + ]; 35 + 36 + installPhase = '' 37 + runHook preInstall 38 + 39 + TERMINFO=$out/share/terminfo make install PREFIX=$out 40 + 41 + runHook postInstall 42 + ''; 43 + 44 + meta = with lib; { 45 + homepage = "https://github.com/siduck76/st"; 46 + description = "A fork of st with many add-ons"; 47 + license = licenses.mit; 48 + maintainers = with maintainers; [ AndersonTorres ]; 49 + platforms = platforms.linux; 50 + }; 51 + }
+24 -3
pkgs/applications/terminal-emulators/st/xst.nix
··· 1 - { lib, stdenv, fetchFromGitHub, pkg-config, libX11, ncurses, libXext, libXft, fontconfig }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fontconfig 5 + , libX11 6 + , libXext 7 + , libXft 8 + , ncurses 9 + , pkg-config 10 + }: 2 11 3 12 stdenv.mkDerivation rec { 4 13 pname = "xst"; ··· 11 20 sha256 = "nOJcOghtzFkl7B/4XeXptn2TdrGQ4QTKBo+t+9npxOA="; 12 21 }; 13 22 14 - nativeBuildInputs = [ pkg-config ]; 15 - buildInputs = [ libX11 ncurses libXext libXft fontconfig ]; 23 + nativeBuildInputs = [ 24 + pkg-config 25 + ]; 26 + buildInputs = [ 27 + fontconfig 28 + libX11 29 + libXext 30 + libXft 31 + ncurses 32 + ]; 16 33 17 34 installPhase = '' 35 + runHook preInstall 36 + 18 37 TERMINFO=$out/share/terminfo make install PREFIX=$out 38 + 39 + runHook postInstall 19 40 ''; 20 41 21 42 meta = with lib; {
+3
pkgs/top-level/all-packages.nix
··· 1017 1017 extraLibs = config.st.extraLibs or []; 1018 1018 }; 1019 1019 xst = callPackage ../applications/terminal-emulators/st/xst.nix { }; 1020 + lukesmithxyz-st = callPackage ../applications/terminal-emulators/st/lukesmithxyz-st { }; 1021 + mcaimi-st = callPackage ../applications/terminal-emulators/st/mcaimi-st.nix { }; 1022 + siduck76-st = callPackage ../applications/terminal-emulators/st/siduck76-st.nix { }; 1020 1023 1021 1024 stupidterm = callPackage ../applications/terminal-emulators/stupidterm { 1022 1025 gtk = gtk3;