nixpkgs/pkgs/development/libraries/cminpack/default.nix

31 lines
846 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl}:
2014-11-13 13:33:15 +00:00
stdenv.mkDerivation rec {
name = "cminpack-1.3.6";
src = fetchurl {
2014-11-13 13:33:15 +00:00
url = "http://devernay.free.fr/hacks/cminpack/${name}.tar.gz";
sha256 = "17yh695aim508x1kn9zf6g13jxwk3pi3404h5ix4g5lc60hzs1rw";
};
2021-03-08 15:54:25 +00:00
postPatch = ''
substituteInPlace Makefile \
--replace '/usr/local' '${placeholder "out"}' \
--replace 'gcc' '${stdenv.cc.targetPrefix}cc' \
--replace 'ranlib -t' '${stdenv.cc.targetPrefix}ranlib' \
--replace 'ranlib' '${stdenv.cc.targetPrefix}ranlib'
'';
preInstall = ''
mkdir -p $out/lib $out/include
'';
meta = {
homepage = "http://devernay.free.fr/hacks/cminpack/cminpack.html";
license = lib.licenses.bsd3;
description = "Software for solving nonlinear equations and nonlinear least squares problems";
2021-03-08 15:54:25 +00:00
platforms = lib.platforms.all;
};
}