From 4ea415d9cd715e542fc8377187be7878ac75cc2f Mon Sep 17 00:00:00 2001 From: Pouya Abbassi Date: Sun, 1 Dec 2024 20:30:12 +0330 Subject: [PATCH] st-snazzy: rename from siduck76-st --- .../terminal-emulators/st/siduck76-st.nix | 51 ------------------ pkgs/by-name/st/st-snazzy/package.nix | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 51 deletions(-) delete mode 100644 pkgs/applications/terminal-emulators/st/siduck76-st.nix create mode 100644 pkgs/by-name/st/st-snazzy/package.nix diff --git a/pkgs/applications/terminal-emulators/st/siduck76-st.nix b/pkgs/applications/terminal-emulators/st/siduck76-st.nix deleted file mode 100644 index 9159c1de0bf546..00000000000000 --- a/pkgs/applications/terminal-emulators/st/siduck76-st.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, fontconfig -, harfbuzz -, libX11 -, libXext -, libXft -, ncurses -, pkg-config -}: - -stdenv.mkDerivation rec { - pname = "siduck76-st"; - version = "0.pre+unstable=2021-08-20"; - - src = fetchFromGitHub { - owner = "siduck76"; - repo = "st"; - rev = "c9bda1de1f3f94ba507fa0eacc96d6a4f338637f"; - hash = "sha256-5n+QkSlVhhku7adtl7TuWhDl3zdwFaXc7Ot1RaIN54A="; - }; - - nativeBuildInputs = [ - pkg-config - ]; - buildInputs = [ - fontconfig - harfbuzz - libX11 - libXext - libXft - ncurses - ]; - - installPhase = '' - runHook preInstall - - TERMINFO=$out/share/terminfo make install PREFIX=$out - - runHook postInstall - ''; - - meta = with lib; { - homepage = "https://github.com/siduck76/st"; - description = "Fork of st with many add-ons"; - license = licenses.mit; - maintainers = with maintainers; [ pouya ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/by-name/st/st-snazzy/package.nix b/pkgs/by-name/st/st-snazzy/package.nix new file mode 100644 index 00000000000000..707a7fd28ba3be --- /dev/null +++ b/pkgs/by-name/st/st-snazzy/package.nix @@ -0,0 +1,54 @@ +{ + lib, + stdenv, + fetchFromGitHub, + fontconfig, + harfbuzz, + libX11, + libXft, + ncurses, + gd, + glib, + pkg-config, +}: + +stdenv.mkDerivation { + pname = "st-snazzy"; + version = "0.8.5"; + + src = fetchFromGitHub { + owner = "siduck"; + repo = "st"; + rev = "a7582f96afdee6bf0793cd0d8f84b755fd6aabf6"; + hash = "sha256-wohkmDsm26kqFGQKuY6NuBQsifT7nZNgrLqLFsU+Vog="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + buildInputs = [ + fontconfig + harfbuzz + libX11 + libXft + ncurses + gd + glib + ]; + + installPhase = '' + runHook preInstall + + TERMINFO=$out/share/terminfo make install PREFIX=$out + + runHook postInstall + ''; + + meta = { + homepage = "https://github.com/siduck/st"; + description = "snazzy terminal (suckless + beautiful)"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.pouya ]; + platforms = lib.platforms.linux; + }; +}