mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
31 lines
731 B
Nix
31 lines
731 B
Nix
{
|
|
cmake,
|
|
fetchFromGitHub,
|
|
lib,
|
|
stdenv,
|
|
withTarget ? "GENERIC",
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "blasfeo";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "giaf";
|
|
repo = "blasfeo";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-e8InqyUMWRdL4CBHUOtrZkuabaTLiNPMNPRCnWzWkQ4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [ "-DTARGET=${withTarget}" ];
|
|
|
|
meta = {
|
|
description = "Basic linear algebra subroutines for embedded optimization";
|
|
homepage = "https://github.com/giaf/blasfeo";
|
|
changelog = "https://github.com/giaf/blasfeo/blob/${finalAttrs.version}/Changelog.txt";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
};
|
|
})
|