Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
withBlas ? false,
|
|
blas,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cminpack";
|
|
version = "1.3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "devernay";
|
|
repo = "cminpack";
|
|
rev = "v${version}";
|
|
hash = "sha256-GF9HiITX/XV8hXrp5lJw2XM0Zyb/CBkMZkRFBbQj03A=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace cmake/cminpack.pc.in \
|
|
--replace-fail ''\'''${prefix}/' ""
|
|
'';
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = lib.optionals withBlas [
|
|
blas
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DUSE_BLAS=${if withBlas then "ON" else "OFF"}"
|
|
"-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Software for solving nonlinear equations and nonlinear least squares problems";
|
|
homepage = "http://devernay.free.fr/hacks/cminpack/";
|
|
changelog = "https://github.com/devernay/cminpack/blob/v${version}/README.md#history";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|