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.
commit950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc
authorMatthew Leach <dev@mattleach.net>
dateThu 8 Jul 2021, 22:18 (5 years ago)
parent4ee3e58
pkgs/development/libraries/fltk/1.4.nix+4−1
@@ -35,7 +35,10 @@ stdenv.mkDerivation {
3535 "--enable-xft"
3636 ];
3737
38− preConfigure = "make clean";
38+ preConfigure = ''
39+ make clean
40+ rm VERSION
41+ '';
3942
4043 enableParallelBuilding = true;
4144