diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2022-05-30 23:19:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 23:19:40 +0000 |
commit | cf89d00255e2309894f4f1963f21538b113fd83f (patch) | |
tree | 6d42474fd78b431659bf3989aff13b61b5e6fc4e | |
parent | 867b76b10740bc9b7d1d48790dc0c83ad8b1e9d4 (diff) | |
parent | ab76f3220da5b6cfdf39f16683ec4be53299fc79 (diff) | |
download | nixpkgs-cf89d00255e2309894f4f1963f21538b113fd83f.tar nixpkgs-cf89d00255e2309894f4f1963f21538b113fd83f.tar.gz nixpkgs-cf89d00255e2309894f4f1963f21538b113fd83f.tar.bz2 nixpkgs-cf89d00255e2309894f4f1963f21538b113fd83f.tar.lz nixpkgs-cf89d00255e2309894f4f1963f21538b113fd83f.tar.xz nixpkgs-cf89d00255e2309894f4f1963f21538b113fd83f.tar.zst nixpkgs-cf89d00255e2309894f4f1963f21538b113fd83f.zip |
Merge pull request #167634 from siraben/xedit-darwin
xedit: fix build on darwin
-rw-r--r-- | pkgs/applications/editors/xedit/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/editors/xedit/default.nix b/pkgs/applications/editors/xedit/default.nix index 5971c3a6e5d..d032ef2da66 100644 --- a/pkgs/applications/editors/xedit/default.nix +++ b/pkgs/applications/editors/xedit/default.nix @@ -22,6 +22,13 @@ stdenv.mkDerivation rec { 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 @@ -40,6 +47,6 @@ stdenv.mkDerivation rec { homepage = "https://gitlab.freedesktop.org/xorg/app/xedit"; license = with licenses; [ mit ]; maintainers = with maintainers; [ shamilton ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |