6
votes
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
make
failed: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
qwt
as a dependency, but for some reason theqwt
package doesn't include that particular header. So I usednix-locate qwt_compat.h
to find out that it's present in theqwt6_qt4
package. Replace it and your project should build correctly!Awesome, thanks!
Here is the pull request.