Commit b4c61eb2 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent b7345ea9
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -6,19 +6,20 @@
  lapack,
  gfortran,
  fixDarwinDylibNames,
  nix-update-script,
}:

assert (!blas.isILP64) && (!lapack.isILP64);

stdenv.mkDerivation rec {
  pname = "scs";
  version = "3.2.3";
  version = "3.2.7";

  src = fetchFromGitHub {
    owner = "cvxgrp";
    repo = "scs";
    rev = version;
    sha256 = "sha256-0g0r3DNgkPZgag0qtz79Wk3Cre1I2yaabFi3OgUzgfc=";
    rev = "refs/tags/${version}";
    hash = "sha256-Y28LrYUuDaXPO8sce1pJIfG3A03rw7BumVgxCIKRn+U=";
  };

  # Actually link and add libgfortran to the rpath
@@ -51,12 +52,17 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Splitting Conic Solver";
    longDescription = ''
      Numerical optimization package for solving large-scale convex cone problems
    '';
    homepage = "https://github.com/cvxgrp/scs";
    changelog = "https://github.com/cvxgrp/scs/releases/tag/${version}";
    license = lib.licenses.mit;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ bhipple ];