2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2023-07-15 17:15:38 +00:00
|
|
|
, libX11, bison, ksh, perl
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXinerama, libXt, libXext, libtirpc, motif, libXft, xbitmaps
|
2023-07-15 17:15:38 +00:00
|
|
|
, libjpeg, libXmu, libXdmcp, libXScrnSaver, bdftopcf
|
|
|
|
, ncompress, mkfontdir, tcl, libXaw, libxcrypt, glibcLocales
|
|
|
|
, autoPatchelfHook, makeWrapper, xset, xrdb
|
|
|
|
, autoreconfHook, opensp, flex, libXpm
|
2020-11-09 15:59:12 +00:00
|
|
|
, rpcsvc-proto }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-03-10 19:12:11 +00:00
|
|
|
pname = "cde";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-10 19:12:11 +00:00
|
|
|
url = "mirror://sourceforge/cdesktopenv/cde-${version}.tar.gz";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-caslezz2kbljwApv5igDPH345PK2YqQUTi1YZgvM1Dw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
for f in $(find . -type f ! -path doc/common); do
|
|
|
|
sed -i \
|
|
|
|
-e "s|/usr/dt|$out|g" \
|
|
|
|
-e "s|/etc/dt|$out/etc|g" \
|
|
|
|
-e "s|\$(DESTDIR)/var|$out/var|g" \
|
|
|
|
"$f"
|
|
|
|
done
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
for f in $(find . -type f -name "Makefile.am"); do
|
|
|
|
sed -i \
|
|
|
|
-e "/chown /d" \
|
|
|
|
-e "/chgrp /d" \
|
|
|
|
-e "s/chmod 4755/chmod 755/g" \
|
|
|
|
"$f"
|
|
|
|
done
|
|
|
|
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "-I/usr/include/tirpc" "-I${libtirpc.dev}/include/tirpc"
|
|
|
|
|
|
|
|
patchShebangs autogen.sh config.rpath contrib programs
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11 libXinerama libXt libXext libtirpc motif libXft xbitmaps
|
2023-07-15 17:15:38 +00:00
|
|
|
libjpeg libXmu libXdmcp libXScrnSaver tcl libXaw ksh libxcrypt
|
|
|
|
libXpm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
bison ncompress autoPatchelfHook makeWrapper
|
|
|
|
autoreconfHook bdftopcf mkfontdir xset xrdb opensp perl flex
|
2020-11-09 15:59:12 +00:00
|
|
|
rpcsvc-proto
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
preConfigure = ''
|
2023-07-15 17:15:38 +00:00
|
|
|
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
|
2022-04-27 09:35:20 +00:00
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/opt/dt/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Common Desktop Environment";
|
|
|
|
homepage = "https://sourceforge.net/projects/cdesktopenv/";
|
|
|
|
license = licenses.lgpl2;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2023-07-15 17:15:38 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|