1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 03:53:41 +00:00

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.
This commit is contained in:
Matthew Leach 2021-07-08 22:18:53 +01:00
parent 4ee3e58fc4
commit 950e2a7efd

View file

@ -35,7 +35,10 @@ stdenv.mkDerivation {
"--enable-xft"
];
preConfigure = "make clean";
preConfigure = ''
make clean
rm VERSION
'';
enableParallelBuilding = true;