2021-11-30 19:10:07 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2023-06-29 14:18:45 +00:00
|
|
|
, libX11, bison, ksh, perl
|
2019-12-07 10:19:10 +00:00
|
|
|
, libXinerama, libXt, libXext, libtirpc, motif, libXft, xbitmaps
|
2023-06-29 14:18:45 +00:00
|
|
|
, libjpeg, libXmu, libXdmcp, libXScrnSaver, bdftopcf
|
|
|
|
, ncompress, mkfontdir, tcl, libXaw, libxcrypt, glibcLocales
|
|
|
|
, autoPatchelfHook, makeWrapper, xset, xrdb
|
|
|
|
, autoreconfHook, opensp, flex, libXpm
|
2020-11-02 16:15:50 +00:00
|
|
|
, rpcsvc-proto }:
|
2019-12-07 10:19:10 +00:00
|
|
|
|
2023-06-29 14:18:45 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-03-01 10:39:32 +00:00
|
|
|
pname = "cde";
|
2023-06-29 14:18:45 +00:00
|
|
|
version = "2.5.1";
|
2019-12-07 10:19:10 +00:00
|
|
|
|
2020-02-15 04:56:48 +00:00
|
|
|
src = fetchurl {
|
2022-03-01 10:39:32 +00:00
|
|
|
url = "mirror://sourceforge/cdesktopenv/cde-${version}.tar.gz";
|
2023-06-29 14:18:45 +00:00
|
|
|
hash = "sha256-caslezz2kbljwApv5igDPH345PK2YqQUTi1YZgvM1Dw=";
|
2019-12-07 10:19:10 +00:00
|
|
|
};
|
2020-02-15 04:56:48 +00:00
|
|
|
|
2023-06-29 14:18:45 +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-11-30 19:10:07 +00:00
|
|
|
|
2023-06-29 14:18:45 +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
|
|
|
|
'';
|
2019-12-07 10:19:10 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11 libXinerama libXt libXext libtirpc motif libXft xbitmaps
|
2023-06-29 14:18:45 +00:00
|
|
|
libjpeg libXmu libXdmcp libXScrnSaver tcl libXaw ksh libxcrypt
|
|
|
|
libXpm
|
2019-12-07 10:19:10 +00:00
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
2023-06-29 14:18:45 +00:00
|
|
|
bison ncompress autoPatchelfHook makeWrapper
|
|
|
|
autoreconfHook bdftopcf mkfontdir xset xrdb opensp perl flex
|
2020-11-02 16:15:50 +00:00
|
|
|
rpcsvc-proto
|
2019-12-07 10:19:10 +00:00
|
|
|
];
|
|
|
|
|
2023-06-29 14:18:45 +00:00
|
|
|
enableParallelBuilding = true;
|
2019-12-07 10:19:10 +00:00
|
|
|
|
2021-08-21 21:05:48 +00:00
|
|
|
preConfigure = ''
|
2023-06-29 14:18:45 +00:00
|
|
|
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
|
2021-08-21 21:05:48 +00:00
|
|
|
'';
|
|
|
|
|
2023-06-29 14:18:45 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
];
|
2019-12-07 10:19:10 +00:00
|
|
|
|
2023-06-29 14:18:45 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/opt/dt/bin
|
2019-12-07 10:19:10 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-07 10:19:10 +00:00
|
|
|
description = "Common Desktop Environment";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/cdesktopenv/";
|
2019-12-07 10:19:10 +00:00
|
|
|
license = licenses.lgpl2;
|
2021-04-29 05:21:13 +00:00
|
|
|
maintainers = [ ];
|
2023-06-29 14:18:45 +00:00
|
|
|
platforms = platforms.linux;
|
2019-12-07 10:19:10 +00:00
|
|
|
};
|
|
|
|
}
|