2021-03-18 21:25:50 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, utilmacros
|
|
|
|
, libX11
|
|
|
|
, libXaw
|
|
|
|
, libXmu
|
|
|
|
, libXt
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xedit";
|
2022-04-07 05:07:52 +02:00
|
|
|
version = "1.2.3";
|
2021-03-18 21:25:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "xorg/app";
|
|
|
|
repo = "xedit";
|
|
|
|
rev = "${pname}-${version}";
|
2022-04-07 05:07:52 +02:00
|
|
|
sha256 = "sha256-WF+4avzRRL0+OA3KxzK7JwmArkPu9fEl+728R6ouXmg=";
|
2021-03-18 21:25:50 +01:00
|
|
|
};
|
|
|
|
|
2022-04-07 07:18:09 +02:00
|
|
|
# ./lisp/mathimp.c:493:10: error: implicitly declaring library function 'finite' with type 'int (double)'
|
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
for i in $(find . -type f -name "*.c"); do
|
|
|
|
substituteInPlace $i --replace "finite" "isfinite"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-03-18 21:25:50 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config utilmacros ];
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXaw
|
|
|
|
libXmu
|
|
|
|
libXt
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-lispdir=$out/share/X11/xedit/lisp"
|
|
|
|
"--with-appdefaultdir=$out/share/X11/app-defaults"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple graphical text editor using Athena Widgets (Xaw)";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/xorg/app/xedit";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ shamilton ];
|
2022-04-07 07:18:09 +02:00
|
|
|
platforms = platforms.unix;
|
2021-03-18 21:25:50 +01:00
|
|
|
};
|
|
|
|
}
|