1 { lib, stdenv, fetchurl
2 , libX11, bison, ksh, perl
3 , libXinerama, libXt, libXext, libtirpc, motif, libXft, xbitmaps
4 , libjpeg, libXmu, libXdmcp, libXScrnSaver, bdftopcf
5 , ncompress, mkfontdir, tcl, libXaw, libxcrypt, glibcLocales
6 , autoPatchelfHook, makeWrapper, xset, xrdb
7 , autoreconfHook, opensp, flex, libXpm
10 stdenv.mkDerivation rec {
15 url = "mirror://sourceforge/cdesktopenv/cde-${version}.tar.gz";
16 hash = "sha256-caslezz2kbljwApv5igDPH345PK2YqQUTi1YZgvM1Dw=";
20 for f in $(find . -type f ! -path doc/common); do
22 -e "s|/usr/dt|$out|g" \
23 -e "s|/etc/dt|$out/etc|g" \
24 -e "s|\$(DESTDIR)/var|$out/var|g" \
28 for f in $(find . -type f -name "Makefile.am"); do
32 -e "s/chmod 4755/chmod 755/g" \
36 substituteInPlace configure.ac \
37 --replace "-I/usr/include/tirpc" "-I${libtirpc.dev}/include/tirpc"
39 patchShebangs autogen.sh config.rpath contrib programs
43 libX11 libXinerama libXt libXext libtirpc motif libXft xbitmaps
44 libjpeg libXmu libXdmcp libXScrnSaver tcl libXaw ksh libxcrypt
48 bison ncompress autoPatchelfHook makeWrapper
49 autoreconfHook bdftopcf mkfontdir xset xrdb opensp perl flex
53 enableParallelBuilding = true;
56 export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
60 "--with-tcl=${tcl}/lib"
64 mkdir -p $out/opt/dt/bin
68 description = "Common Desktop Environment";
69 homepage = "https://sourceforge.net/projects/cdesktopenv/";
70 license = licenses.lgpl2;
72 platforms = platforms.linux;