12 assert (!blas.isILP64) && (!lapack.isILP64);
14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-Y28LrYUuDaXPO8sce1pJIfG3A03rw7BumVgxCIKRn+U=";
25 # Actually link and add libgfortran to the rpath
27 substituteInPlace scs.mk \
28 --replace "#-lgfortran" "-lgfortran" \
32 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
42 # Test demo requires passing data and seed; numbers chosen arbitrarily.
44 ./out/demo_socp_indirect 42 0.42 0.42 42
51 cp out/*.a out/*.so out/*.dylib $out/lib/
56 updateScript = nix-update-script { };
60 description = "Splitting Conic Solver";
62 Numerical optimization package for solving large-scale convex cone problems
64 homepage = "https://github.com/cvxgrp/scs";
65 changelog = "https://github.com/cvxgrp/scs/releases/tag/${version}";
66 license = lib.licenses.mit;
67 platforms = lib.platforms.all;
68 maintainers = with lib.maintainers; [ bhipple ];