mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
util-macros,
|
|
libx11,
|
|
libxaw,
|
|
libxmu,
|
|
libxt,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xedit";
|
|
version = "1.2.5";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "xorg/app";
|
|
repo = "xedit";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "sha256-+nWtoqm+5ie2U5nFJRioftMkxJFNtws09kTelmWhqgA=";
|
|
};
|
|
|
|
# ./lisp/mathimp.c:493:10: error: implicitly declaring library function 'finite' with type 'int (double)'
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
for i in $(find . -type f -name "*.c"); do
|
|
substituteInPlace $i --replace "finite" "isfinite"
|
|
done
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
util-macros
|
|
];
|
|
buildInputs = [
|
|
libx11
|
|
libxaw
|
|
libxmu
|
|
libxt
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-lispdir=$out/share/X11/xedit/lisp"
|
|
"--with-appdefaultdir=$out/share/X11/app-defaults"
|
|
];
|
|
|
|
meta = {
|
|
description = "Simple graphical text editor using Athena Widgets (Xaw)";
|
|
homepage = "https://gitlab.freedesktop.org/xorg/app/xedit";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
mainProgram = "xedit";
|
|
};
|
|
}
|