From 950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Thu, 8 Jul 2021 22:18:53 +0100 Subject: [PATCH] fltk14: fix build on apple silicon For some reason having a file called `VERSION` in the package root directory appears to be interfering with the build process: ``` Compiling Fl_cocoa.mm... In file included from Fl_cocoa.mm:39: In file included from ../FL/x.H:32: In file included from ../FL/mac.H:50: [...] In file included from /nix/store/xhvrrnz8n6dxizgig46ijh59m7mfy261-libcxx-11.1.0-dev/include/c++/v1/cstddef:37: ../version:1:1: error: expected unqualified-id 1.4.0 ^ ``` By removing the file, the build succeeds. --- pkgs/development/libraries/fltk/1.4.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/fltk/1.4.nix b/pkgs/development/libraries/fltk/1.4.nix index 2db0aea3ecf8..38926f298d40 100644 --- a/pkgs/development/libraries/fltk/1.4.nix +++ b/pkgs/development/libraries/fltk/1.4.nix @@ -35,7 +35,10 @@ stdenv.mkDerivation { "--enable-xft" ]; - preConfigure = "make clean"; + preConfigure = '' + make clean + rm VERSION + ''; enableParallelBuilding = true;