mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
9833d56c24
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken Tool is still WIP but this is one of the first results. I manually audited the results and removed some results that were not valid. Note that some of these packages maybe should have more constrained platforms set instead of broken set, but I think not being perfectly correct is better than just keep trying to build all these things and never succeeding. Some observations: - Some darwin builds require XCode tools - aarch64-linux builds sometimes suffer from using gcc9 - gcc9 is getting older and misses some new libraries/features - Sometimes tools try to do system detection or expect some explicit settings for platforms that are not x86_64-linux
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, utilmacros
|
|
, libX11
|
|
, libXaw
|
|
, libXmu
|
|
, libXt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xedit";
|
|
version = "1.2.3";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "xorg/app";
|
|
repo = "xedit";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "sha256-WF+4avzRRL0+OA3KxzK7JwmArkPu9fEl+728R6ouXmg=";
|
|
};
|
|
|
|
# ./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
|
|
'';
|
|
|
|
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 ];
|
|
platforms = platforms.unix;
|
|
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|