Help Packaging Elmer FEM for Nix
I'm trying to package Elmer for use with NixOS, and could use some help from any experienced Nix users. My current attempt is located here. There is some junk left around in that file from my experimenting, but it's at least a start. There are also a few lines of error included in the comment here.
Any help is appreciated!
I copied over your expression and looked into the build, scrolling up in the output a bit I found why
Nix by default enables some hardening options, you can disable the specific one causing this error by adding
hardeningDisable = [ "format" ];to your mkDerivation arguments.
Obviously there's always one more problem. This time, it was
You already had correctly specified
qwtas a dependency, but for some reason the
qwtpackage doesn't include that particular header. So I used
nix-locate qwt_compat.hto find out that it's present in the
qwt6_qt4package. Replace it and your project should build correctly!
Here is the pull request.