summary refs log tree commit diff
path: root/pkgs/development/libraries/fltk
diff options
context:
space:
mode:
authorMatthew Leach <dev@mattleach.net>2021-07-08 22:18:53 +0100
committerMatthew Leach <dev@mattleach.net>2021-07-08 22:26:29 +0100
commit950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc (patch)
treef709846cc121f95c14cb165620bd85b61ff375ff /pkgs/development/libraries/fltk
parent4ee3e58fc4c80b77a72f63ffd6e01391ae13411e (diff)
downloadnixpkgs-950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc.tar
nixpkgs-950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc.tar.gz
nixpkgs-950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc.tar.bz2
nixpkgs-950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc.tar.lz
nixpkgs-950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc.tar.xz
nixpkgs-950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc.tar.zst
nixpkgs-950e2a7efd3cb5c4a89e1c5cd290db8098ef0bbc.zip
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.
Diffstat (limited to 'pkgs/development/libraries/fltk')
-rw-r--r--pkgs/development/libraries/fltk/1.4.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/fltk/1.4.nix b/pkgs/development/libraries/fltk/1.4.nix
index 2db0aea3ecf..38926f298d4 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;