scip icon indicating copy to clipboard operation
scip copied to clipboard

feat: added nix packaging

Open dzmitry-lahoda opened this issue 1 year ago • 2 comments

nix build will produce include/lib for linux. Sure can make it work on mac easy.

note

So can not build and use in nix. Oneliner. World is happy.

Would be awesome ZIMPL to be git repo - i did not found such - download zip..

Ensured that by default git ignore does not ignores useful build.. files, but only out dir of cmake.

Ignored nix builds too.

dzmitry-lahoda avatar Jan 14 '24 11:01 dzmitry-lahoda

this is early stages.

nix has ideal ways to configure "featuers" via flags/ovverrideattrs and etc

idea is to have all deps native flake https://github.com/scivision/mumps/pull/74 and allow to override any deps and combinations, so can build engine per need.

dzmitry-lahoda avatar Jan 20 '24 19:01 dzmitry-lahoda

You might want to try my flake https://github.com/Lichthagel/scipopt-nix which I have been working on recently.

I used your trick to package tbb with cmake support. Apart from that it is more sophisticated than your initial draft in this PR:

  • nativeBuildInputs and buildInputs are used correctly
  • outputs are split (needed some patches to use the correct dirs, see ./patches)
  • more packages (see readme & ./packages)
  • templates (see readme & ./templates)
  • some simple checks

If you notice anything wrong or missing feel free to raise an issue or PR.

Generally I think nix packaging should stay in a different repo, as the scipopt suite consists of a wide variety of tools and their maintainers are likely not acquainted with nix.

Lichthagel avatar May 16 '24 12:05 Lichthagel

Generally I think nix packaging should stay in a different repo, as the scipopt suite consists of a wide variety of tools and their maintainers are likely not acquainted with nix.

Indeed. I don't think we have the capacity to maintain and test this as well.

svigerske avatar Jun 22 '24 06:06 svigerske