1 # This program used to come with xorg releases, but now I could only find it
2 # at https://www.x.org/releases/individual/.
3 # That is why this expression is not inside pkgs.xorg
5 { lib, stdenv, fetchurl, makeWrapper, xorg, pkg-config }:
7 stdenv.mkDerivation rec {
12 url = "mirror://xorg/individual/app/xfontsel-${version}.tar.bz2";
13 sha256 = "0700lf6hx7dg88wq1yll7zjvf9gbwh06xff20yffkxb289y0pai5";
16 nativeBuildInputs = [ pkg-config makeWrapper ];
18 buildInputs = [ xorg.libX11 xorg.libXaw ];
20 # Without this, it gets Xmu as a dependency, but without rpath entry
21 NIX_LDFLAGS = "-lXmu";
23 # This will not make xfontsel find its app-defaults, but at least the $out
24 # directory will contain them.
25 # hack: Copying the XFontSel app-defaults file to $HOME makes xfontsel work.
27 make install appdefaultdir=$out/share/X11/app-defaults
28 wrapProgram $out/bin/xfontsel \
29 --set XAPPLRESDIR $out/share/X11/app-defaults
33 homepage = "https://www.x.org/";
34 description = "Allows testing the fonts available in an X server";
35 mainProgram = "xfontsel";
36 license = with licenses; [ x11 smlnj mit ];
38 platforms = platforms.unix;