Files
nixpkgs/pkgs/by-name/bl/blasfeo/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

41 lines
1003 B
Nix

{
cmake,
fetchFromGitHub,
fetchpatch,
lib,
stdenv,
withTarget ? "GENERIC",
}:
stdenv.mkDerivation (finalAttrs: {
pname = "blasfeo";
version = "0.1.4.2";
src = fetchFromGitHub {
owner = "giaf";
repo = "blasfeo";
rev = finalAttrs.version;
hash = "sha256-p1pxqJ38h6RKXMg1t+2RHlfmRKPuM18pbUarUx/w9lw=";
};
patches = [
(fetchpatch {
name = "blasfeo-fix-cmake-4.patch";
url = "https://github.com/giaf/blasfeo/commit/75078e2b6153d1c8bc5329e83a82d4d4d3eefd76.patch";
hash = "sha256-bH5xUKAjNFCO9rRc655BcMiUesNFFln+iEPC5JHcQAU=";
})
];
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 ];
};
})