qpoases: init at 3.2.1
This commit is contained in:
parent
b5c54289bb
commit
840f9efd77
1 changed files with 42 additions and 0 deletions
42
pkgs/by-name/qp/qpoases/package.nix
Normal file
42
pkgs/by-name/qp/qpoases/package.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "qpoases";
|
||||
version = "3.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coin-or";
|
||||
repo = "qpOASES";
|
||||
rev = "releases/${finalAttrs.version}";
|
||||
hash = "sha256-NWKwKYdXJD8lGorhTFWJmYeIhSCO00GHiYx+zHEJk0M=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Allow building as shared library.
|
||||
# This was merged upstream, and can be removed on next version
|
||||
(fetchpatch {
|
||||
name = "shared-libs.patch";
|
||||
url = "https://github.com/coin-or/qpOASES/pull/109/commits/cb49b52c17e0b638c88ff92f4c59e347cd82a332.patch";
|
||||
hash = "sha256-6IoJHCFVCZpf3+Im1f64VwV5vj+bbbwCSF0vqpdd5Os=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Open-source C++ implementation of the recently proposed online active set strategy";
|
||||
homepage = "https://github.com/coin-or/qpOASES";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ nim65s ];
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue