nixpkgs/pkgs/desktops/cdesktopenv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.9 KiB
Nix
Raw Normal View History

{ 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
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
preConfigure = ''
2023-06-29 14:18:45 +00:00
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
'';
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
'';
meta = with lib; {
2019-12-07 10:19:10 +00:00
description = "Common Desktop Environment";
homepage = "https://sourceforge.net/projects/cdesktopenv/";
2019-12-07 10:19:10 +00:00
license = licenses.lgpl2;
maintainers = [ ];
2023-06-29 14:18:45 +00:00
platforms = platforms.linux;
2019-12-07 10:19:10 +00:00
};
}