The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
the configuration code generates small c programs with a main function
sans return type specifer. this causes clang builds to fail. add
'-Wno-error=implicit-int' to fix the build.
add -headerpad_max_install_names to env.NIX_LDFLAGS for x64 darwin
- Use the generic builder and override build and install phases instead
of using buildCommand and missing phases and hooks, like fixup.
- Fix build on Darwin by using the proper build script (ccc.osx).
- Add cctools to build inputs because ccc.osx uses the libtool
command.
- The install_name of the library is not set so fix it with
fixDarwinDylibNames.
- Install headers into the expected location $out/include/lpsolve
instead of $out/include. This follows what other distro do.
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5/bin/lp_solve -h` got 0 exit code
- ran `/nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5/bin/lp_solve -h` and found version 5.5.2.5
- found 5.5.2.5 with grep in /nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5
- found 5.5.2.5 in filename of file in /nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5
cc "@smironov"