Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 blas, 6 gfortran, 7 lapack, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "csdp"; 12 version = "6.1.1"; 13 14 src = fetchurl { 15 url = "https://www.coin-or.org/download/source/Csdp/Csdp-${version}.tgz"; 16 sha256 = "1f9ql6cjy2gwiyc51ylfan24v1ca9sjajxkbhszlds1lqmma8n05"; 17 }; 18 19 buildInputs = [ 20 blas 21 gfortran.cc.lib 22 lapack 23 ]; 24 25 postPatch = '' 26 substituteInPlace Makefile --replace /usr/local/bin $out/bin 27 substituteInPlace lib/Makefile \ 28 --replace-fail 'ar cr' '${stdenv.cc.targetPrefix}ar cr' 29 ''; 30 31 preInstall = '' 32 rm -f INSTALL 33 mkdir -p $out/bin 34 ''; 35 36 meta = { 37 homepage = "https://projects.coin-or.org/Csdp"; 38 license = lib.licenses.cpl10; 39 maintainers = [ lib.maintainers.roconnor ]; 40 description = "C Library for Semidefinite Programming"; 41 platforms = lib.platforms.unix; 42 }; 43}