lp_solve: add the expression
This commit is contained in:
parent
9944d92dff
commit
dcdd7a37f6
43
pkgs/applications/science/math/lp_solve/default.nix
Normal file
43
pkgs/applications/science/math/lp_solve/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "lp_solve-${version}";
|
||||
version = "5.5.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://sourceforge.net/projects/lpsolve/files/lpsolve/${version}/lp_solve_${version}_source.tar.gz";
|
||||
sha256 = "176c7f023mb6b8bfmv4rfqnrlw88lsg422ca74zjh19i2h5s69sq";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
. $stdenv/setup
|
||||
tar xvfz $src
|
||||
(
|
||||
cd lp_solve*/lpsolve55
|
||||
bash ccc
|
||||
mkdir -pv $out/lib
|
||||
cp -v bin/*/* $out/lib
|
||||
)
|
||||
(
|
||||
cd lp_solve*/lp_solve
|
||||
bash ccc
|
||||
mkdir -pv $out/bin
|
||||
cp -v bin/*/* $out/bin
|
||||
)
|
||||
(
|
||||
mkdir -pv $out/include
|
||||
cp -v lp_solve*/*.h $out/include
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "lp_solve is a Mixed Integer Linear Programming (MILP) solver.";
|
||||
homepage = "http://lpsolve.sourceforge.net";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ smironov ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -1497,6 +1497,8 @@ let
|
||||
|
||||
libbladeRF = callPackage ../development/libraries/libbladeRF { };
|
||||
|
||||
lp_solve = callPackage ../applications/science/math/lp_solve { };
|
||||
|
||||
lprof = callPackage ../tools/graphics/lprof { };
|
||||
|
||||
fdk_aac = callPackage ../development/libraries/fdk-aac { };
|
||||
|
Loading…
Reference in New Issue
Block a user