aboutsummaryrefslogtreecommitdiff
path: root/.config/nixpkgs/packages
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-03-14 22:57:45 -0400
committertdro <tdro@users.noreply.github.com>2022-03-14 22:57:45 -0400
commit84fa56baf9a8b7c76e90f7013840f4c4a222957e (patch)
tree1a70523fb28f06d4691e109dafe3cfc149305832 /.config/nixpkgs/packages
parent99a0494cc933de18caf1324925892265eab65eac (diff)
downloaddotfiles-84fa56baf9a8b7c76e90f7013840f4c4a222957e.tar.gz
dotfiles-84fa56baf9a8b7c76e90f7013840f4c4a222957e.tar.bz2
dotfiles-84fa56baf9a8b7c76e90f7013840f4c4a222957e.zip
.config/nixpkgs/packages: Use patched rxvt-unicode
Add zeal and weston to package set.
Diffstat (limited to '.config/nixpkgs/packages')
-rw-r--r--.config/nixpkgs/packages/rxvt-unicode/default.nix99
1 files changed, 99 insertions, 0 deletions
diff --git a/.config/nixpkgs/packages/rxvt-unicode/default.nix b/.config/nixpkgs/packages/rxvt-unicode/default.nix
new file mode 100644
index 0000000..24c9afb
--- /dev/null
+++ b/.config/nixpkgs/packages/rxvt-unicode/default.nix
@@ -0,0 +1,99 @@
+{ lib, stdenv, fetchurl, fetchpatch, makeDesktopItem, libX11, libXt, libXft
+, libXrender, ncurses, fontconfig, freetype, pkg-config, gdk-pixbuf, perl }:
+
+let
+ pname = "rxvt-unicode";
+ version = "9.26";
+ description = "A clone of the well-known terminal emulator rxvt";
+
+ desktopItem = makeDesktopItem {
+ name = pname;
+ exec = "urxvt";
+ genericName = pname;
+ comment = description;
+ desktopName = "URxvt";
+ icon = "utilities-terminal";
+ categories = "System;TerminalEmulator;";
+ };
+
+in stdenv.mkDerivation {
+
+ inherit pname version;
+ name = "${pname}-unwrapped-${version}";
+
+ src = fetchurl {
+ url = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${version}.tar.bz2";
+ sha256 = "12y9p32q0v7n7rhjla0j2g9d5rj2dmwk20c9yhlssaaxlawiccb4";
+ };
+
+ buildInputs = [
+ fontconfig
+ freetype
+ gdk-pixbuf
+ libX11
+ libXft
+ libXrender
+ libXt
+ ncurses
+ perl
+ pkg-config
+ ];
+
+ outputs = [ "out" "terminfo" ];
+
+ patches = [
+ (fetchpatch {
+ name = "enable-wide-glyphs.patch";
+ url = "https://raw.githubusercontent.com/owl4ce/nelumbonaceae/e6be9823ec9ab7c14a23f5a25dfb33ce705d9950/x11-terms/rxvt-unicode/files/enable-wide-glyphs.patch";
+ sha256 = "0vfpidysc1kxr3zark2y1b8fxx7k2lck79ccb7b97mgz04mxchvd";
+ })
+ (fetchpatch {
+ name = "improve-font-rendering.patch";
+ url = "https://raw.githubusercontent.com/owl4ce/nelumbonaceae/e6be9823ec9ab7c14a23f5a25dfb33ce705d9950/x11-terms/rxvt-unicode/files/improve-font-rendering.patch";
+ sha256 = "0xkwvn204n679v4mgpw2dl4c30pdl622l6b2iw6sr0gijga8zqcd";
+ })
+ (fetchpatch {
+ name = "256-color-resources.patch";
+ url = "https://raw.githubusercontent.com/NixOS/nixpkgs/2bb3a9da24ca60d9f5bed69f679a1ec50dbdf997/pkgs/applications/terminal-emulators/rxvt-unicode/patches/256-color-resources.patch";
+ sha256 = "00yw67faybglypnvz59k7m3cp5bvdwaiq0771zfi1x7drz3xfql6";
+ })
+ (fetchpatch {
+ name = "fixed-layout-size.patch";
+ url = "https://raw.githubusercontent.com/owl4ce/nelumbonaceae/b593a0eb7bb45a0b471c2ee2aa02b0e66776b9c0/x11-terms/rxvt-unicode/files/fixed-layout-size.patch";
+ sha256 = "148vpln61zs3qv4sipcc5c7fiyc4d4q6k10r7bpr0k0q4pzshljh";
+ })
+ ];
+
+ configureFlags = [
+ "--enable-perl"
+ "--enable-unicode3"
+ "--enable-256-color"
+ "--enable-wide-glyphs"
+ "--with-terminfo=$terminfo/share/terminfo"
+ ];
+
+ CFLAGS = [ "-I${freetype.dev}/include/freetype2" ];
+ LDFLAGS = [ "-lfontconfig" "-lXrender" "-lpthread" ];
+
+ preConfigure = ''
+ mkdir -p $terminfo/share/terminfo
+ export TERMINFO=$terminfo/share/terminfo
+ mkdir -p $out/$(dirname ${perl.libPrefix})
+ ln -s $out/lib/urxvt $out/${perl.libPrefix}
+ '';
+
+ postInstall = ''
+ mkdir -p $out/nix-support
+ echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
+ cp -r ${desktopItem}/share/applications/ $out/share/
+ '';
+
+ meta = {
+ inherit description;
+ license = lib.licenses.gpl3;
+ platforms = lib.platforms.unix;
+ maintainers = with lib.maintainers; [ rnhmjoj ];
+ downloadPage = "http://dist.schmorp.de/rxvt-unicode/Attic/";
+ homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";
+ };
+}