2024-05-24 08:10:54 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2015-09-13 12:24:02 +00:00
|
|
|
|
2024-06-12 05:48:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "coinmp";
|
2019-03-02 00:18:50 +00:00
|
|
|
version = "1.8.4";
|
2015-09-13 12:24:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-12 05:48:59 +00:00
|
|
|
url = "https://www.coin-or.org/download/source/CoinMP/CoinMP-${finalAttrs.version}.tgz";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-NFn7DMvdOTQnRGhDOJhKxMwVP7BDT0yujPdL1nSQo40=";
|
2015-09-13 12:24:02 +00:00
|
|
|
};
|
|
|
|
|
2024-05-24 08:10:54 +00:00
|
|
|
patches = [
|
|
|
|
# backport build fixes for pkgsMusl.CoinMP
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/coin-or/Cgl/commit/57d8c71cd50dc27a89eaeb4672499bca55f1fd72.patch";
|
|
|
|
extraPrefix = "Cgl/";
|
|
|
|
stripLen = 1;
|
|
|
|
hash = "sha256-NdwXpIL1w6kHVfhBFscTlpriQOfUXx860/4x7pK+698=";
|
|
|
|
})
|
|
|
|
# https://github.com/coin-or/Clp/commit/b637e1d633425ae21ec041bf7f9e06f56b741de0
|
|
|
|
./0001-change-more-reinterpret_cast-from-NULL-to-C-cast-see.patch
|
|
|
|
# https://github.com/coin-or/Clp/commit/e749fe6b11a90006d744af2ca2691220862e3a59
|
|
|
|
./0002-change-reinterpret_cast-of-NULL-to-C-style-case-fixe.patch
|
|
|
|
# https://github.com/coin-or/Cbc/commit/584fd12fba6a562d49864f44bedd13ee32d06999
|
|
|
|
./0001-use-static_cast-for-static-cast-fixes-319.patch
|
|
|
|
];
|
|
|
|
|
2022-04-13 11:28:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-01-21 19:26:18 +00:00
|
|
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
|
|
|
CXXFLAGS = "-std=c++14";
|
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-23 01:59:47 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://projects.coin-or.org/CoinMP/";
|
2015-09-13 12:24:02 +00:00
|
|
|
description = "COIN-OR lightweight API for COIN-OR libraries CLP, CBC, and CGL";
|
2018-11-15 21:49:51 +00:00
|
|
|
platforms = platforms.unix;
|
2015-09-13 12:24:02 +00:00
|
|
|
license = licenses.epl10;
|
|
|
|
};
|
2024-06-12 05:48:59 +00:00
|
|
|
})
|