I’m currently attempting to build the software Madagascar, which is used to parse and visualize .rsf files. My derivation is in the repo: https://github.com/Sacolle/nix-madagascar/tree/main .It’s built with gcc13std due to some files using implicit declarations, which was promoted to an error in latter version of gcc. It is packaged with SCons, which is a build tool i’ve never used, but the base mkDerivation worked well. The problem is that the pens, programs to visualize the .vpl files that it writes are not being built. This is show clearly in the nix log of the derivation:
scons: Reading SConscript files ...
/build/source/framework/rsf/path.py:37: SyntaxWarning: invalid escape sequence '\s'
check = re.match("(?:%s\s+)?datapath=(\S+)" % os.uname()[1],
checking platform ... (cached) posix [unknown]
checking for C compiler ... (cached) gcc
checking if gcc works ... yes
checking if gcc accepts '-x c -std=gnu17 -Wall -pedantic' ... yes
checking for ar ... (cached) ar
checking for rpc ... no
checking complex support ... yes
checking for X11 headers ... (cached) no
checking for OpenGL ... no
checking for sfpen ... (cached) no
sfpen (for displaying .vpl images) will not be built.
checking for ppm ... no
checking for tiff ... no
sfbyte2tif, sftif2byte, and tiffpen will not be built.
checking for GD (PNG) ... no
...
Which is due to missing packages.
The problem is even adding the missing packages into the build inputs, native build inputs, etc, SCons still does not recognize them. The script that does that in the package is the file: https://github.com/ahay/src/blob/3cd212fda36aeba82a598e93d162818c49adb385/framework/configure.py
I’ve tried many options, but i’m still a beginner at NixOS and do not know what is going wrong.
So, anyone with knowledge of SCons could help me compile those pens, i’d be grateful.