NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.96k stars 13.33k forks source link

Packaging request: Coin-or MIP and/or CyLP for mathematical optimization #112353

Open rmcgibbo opened 3 years ago

rmcgibbo commented 3 years ago

Project description I would love to be able to use the python mip and/or cylp package in nixos, from Coin-Or. Both are packages for mathematical optimization.

I spent some time today trying to package both projects here: https://github.com/rmcgibbo/nixpkgs/tree/cylp, but I got stuck. With mip, I hit an issue that it depends on Cbc but ships pre-compiled binaries of Cbc, and I couldn't get it to work with the nixpkgs version of Cbc. I also couldn't get the pre-compiled versions of Cbc to work because of glibc version number issues (not surprising). With cylp, it seemed to crash for me during testing with a segfault, and I wasn't able to figure out whether this was a nix issue or an upstream issue, and wasn't sure how to debug it.

Any help would be appreciated.

Both packages are available under the eclipse public license.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

nessdoor commented 1 year ago

Hello, I stumbled across MIP during the course on mathematical optimization I'm currently taking. I cobbled up a working derivation and will probably commit it within the day.

I briefly tested it and it seems to be working.

If you have already attempted packaging it and found a non-obvious issue that prevented you from committing it, please let me know.

nessdoor commented 1 year ago

The packaging effort for CyLP has been abandoned following https://github.com/NixOS/nixpkgs/pull/154026#issuecomment-1608533271. A follow-up PR has been promised in https://github.com/NixOS/nixpkgs/pull/154026#issuecomment-1607674998, but I did not find any trace of it anywhere.

@Janik-Haag, if you are still invested in getting this packaged, please say so, otherwise I might give it a shot in order to close this issue. Wouldn't want to waste any time you have poured into this, however small it may be.

@rmcgibbo of course, if you plan to resume your efforts, feel free to intervene.

Janik-Haag commented 12 months ago

Nah I didn't have time to put work in to it, feel free to go ahead.