uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
52
pkgs/development/libraries/science/math/scs/default.nix
Normal file
52
pkgs/development/libraries/science/math/scs/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchFromGitHub, blas, lapack, gfortran, fixDarwinDylibNames }:
|
||||
|
||||
assert (!blas.isILP64) && (!lapack.isILP64);
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "scs";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cvxgrp";
|
||||
repo = "scs";
|
||||
rev = version;
|
||||
sha256 = "sha256-ewn7AGNqTXY3bp5itHTfAQ2Es2ZAIbuRFM5U600Px50=";
|
||||
};
|
||||
|
||||
# Actually link and add libgfortran to the rpath
|
||||
postPatch = ''
|
||||
substituteInPlace scs.mk \
|
||||
--replace "#-lgfortran" "-lgfortran" \
|
||||
--replace "gcc" "cc"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||
|
||||
buildInputs = [ blas lapack gfortran.cc.lib ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
# Test demo requires passing data and seed; numbers chosen arbitrarily.
|
||||
postCheck = ''
|
||||
./out/demo_socp_indirect 42 0.42 0.42 42
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/lib
|
||||
cp -r include $out/
|
||||
cp out/*.a out/*.so out/*.dylib $out/lib/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue