Files
nixpkgs/pkgs/by-name/qp/qpoases/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
nix-update-script,
cmake,
withShared ? (!stdenv.hostPlatform.isStatic),
}:
stdenv.mkDerivation (finalAttrs: {
pname = "qpoases";
version = "3.2.2";
src = fetchFromGitHub {
owner = "coin-or";
repo = "qpOASES";
tag = "releases/${finalAttrs.version}";
hash = "sha256-L6uBRXaPJZinIRTm+x+wnXmlVkSlWm4XMB5yX/wxg2A=";
};
patches = [
(fetchpatch {
name = "qpoases-fix-cmake-4.patch";
url = "https://github.com/coin-or/qpOASES/commit/35b762ba3fee2e009d9e99650c68514da05585c5.patch";
hash = "sha256-I6l+ah1j45VEMokZqX6DYVmE55uWlVi0rx2B+HQv5Ik=";
})
];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" withShared)
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"releases/(.*)"
];
};
meta = with lib; {
description = "Open-source C++ implementation of the recently proposed online active set strategy";
homepage = "https://github.com/coin-or/qpOASES";
changelog = "https://github.com/coin-or/qpOASES/blob/${finalAttrs.src.tag}/VERSIONS.txt";
license = licenses.lgpl21;
maintainers = with maintainers; [ nim65s ];
};
})