Skip to content

Instantly share code, notes, and snippets.

@aforemny
Created February 26, 2021 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aforemny/b88594ba0f74fa32065eb72c20b53efa to your computer and use it in GitHub Desktop.
Save aforemny/b88594ba0f74fa32065eb72c20b53efa to your computer and use it in GitHub Desktop.
{ lib, stdenv, fetchurl
, pkg-config, libtool
, libX11, libXt, libXpm, libjpeg_turbo, librsvg, xorg }:
stdenv.mkDerivation rec {
pname = "aterm";
version = "1.0.1";
src = fetchurl {
url = "https://phoenixnap.dl.sourceforge.net/project/aterm/aterm/1.0.1/aterm-1.0.1.tar.gz";
hash = "sha256-CzhcfQD/3UiPeVDg3hCVdvVaBLTAVtzkJq4vjtVk8hQ=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libtool libX11 libXt libXpm libjpeg_turbo librsvg xorg.libXinerama xorg.libXt];
patchPhase = ''
sed -i 's|# include <sys/stropts.h>|#include <sys/ioctl.h>|' src/command.c
sed -i 's| I_PUSH, | TIOCPKT, |' src/command.c
'';
configurePhase = ''
LIBTOOL=${libtool}/bin/libtool ./configure --prefix=$out --enable-everything --enable-smart-resize --enable-256-color
'';
meta = with lib; {
homepage = "http://rxvt.sourceforge.net/";
description = "Colour vt102 terminal emulator with less features and lower memory consumption";
longDescription = ''
rxvt (acronym for our extended virtual terminal) is a terminal
emulator for the X Window System, originally written by Rob Nation
as an extended version of the older xvt terminal by John Bovey of
University of Kent. Mark Olesen extensively modified it later and
took over maintenance for several years.
rxvt is intended to be a slimmed-down alternate for xterm,
omitting some of its little-used features, like Tektronix 4014
emulation and toolkit-style configurability.
'';
maintainers = with maintainers; [ AndersonTorres ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment