Skip to content

Commit

Permalink
Merge pull request #337025 from GaetanLepage/scs
Browse files Browse the repository at this point in the history
scs: 3.2.3 -> 3.2.7
  • Loading branch information
drupol authored Aug 24, 2024
2 parents eb0e6df + 74685cd commit dc05f34
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
{ lib, stdenv, fetchFromGitHub, blas, lapack, gfortran, fixDarwinDylibNames }:
{
lib,
stdenv,
fetchFromGitHub,
blas,
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
Expand All @@ -22,7 +31,11 @@ stdenv.mkDerivation rec {

nativeBuildInputs = lib.optional stdenv.isDarwin fixDarwinDylibNames;

buildInputs = [ blas lapack gfortran.cc.lib ];
buildInputs = [
blas
lapack
gfortran.cc.lib
];

doCheck = true;

Expand All @@ -39,14 +52,19 @@ stdenv.mkDerivation rec {
runHook postInstall
'';

meta = with lib; {
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";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.bhipple ];
changelog = "https://github.com/cvxgrp/scs/releases/tag/${version}";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ bhipple ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/scs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@

buildPythonPackage rec {
pname = "scs";
version = "3.2.6";
version = "3.2.7";
pyproject = true;

src = fetchFromGitHub {
owner = "bodono";
repo = "scs-python";
rev = "refs/tags/${version}";
hash = "sha256-Sl0+1/uEXAg+V2ijDFGmez6hBKQjbi63gN26lPCiEnI=";
hash = "sha256-ZhY4h0C8aF3IjD9NMtevcNTSqX+tIUao9bC+WlP+uDk=";
fetchSubmodules = true;
};

Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37184,8 +37184,6 @@ with pkgs;

QuadProgpp = callPackage ../development/libraries/science/math/QuadProgpp { };

scs = callPackage ../development/libraries/science/math/scs { };

sage = callPackage ../applications/science/math/sage { };
sageWithDoc = sage.override { withDoc = true; };

Expand Down

0 comments on commit dc05f34

Please sign in to comment.