mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
be7cd20d3c
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5/bin/lp_solve -h` got 0 exit code - ran `/nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5/bin/lp_solve -h` and found version 5.5.2.5 - found 5.5.2.5 with grep in /nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5 - found 5.5.2.5 in filename of file in /nix/store/n5jgpvmzaqdfxdfawfi5rf8vav1qgi7w-lp_solve-5.5.2.5 cc "@smironov"
50 lines
1008 B
Nix
50 lines
1008 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lp_solve-${version}";
|
|
version = "5.5.2.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/lpsolve/lpsolve/${version}/lp_solve_${version}_source.tar.gz";
|
|
sha256 = "12pj1idjz31r7c2mb5w03vy1cmvycvbkx9z29s40qdmkp1i7q6i0";
|
|
};
|
|
|
|
patches = [ ./isnan.patch ];
|
|
|
|
buildCommand = ''
|
|
. $stdenv/setup
|
|
tar xvfz $src
|
|
(
|
|
cd lp_solve*
|
|
eval patchPhase
|
|
)
|
|
(
|
|
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 = "A Mixed Integer Linear Programming (MILP) solver";
|
|
homepage = "http://lpsolve.sourceforge.net";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ smironov ];
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|
|
|