nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 cmake,
3 fetchFromGitHub,
4 lib,
5 stdenv,
6 withTarget ? "GENERIC",
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "blasfeo";
11 version = "0.1.4.2";
12
13 src = fetchFromGitHub {
14 owner = "giaf";
15 repo = "blasfeo";
16 rev = finalAttrs.version;
17 hash = "sha256-p1pxqJ38h6RKXMg1t+2RHlfmRKPuM18pbUarUx/w9lw=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 cmakeFlags = [ "-DTARGET=${withTarget}" ];
23
24 meta = {
25 description = "Basic linear algebra subroutines for embedded optimization";
26 homepage = "https://github.com/giaf/blasfeo";
27 changelog = "https://github.com/giaf/blasfeo/blob/${finalAttrs.version}/Changelog.txt";
28 license = lib.licenses.bsd2;
29 maintainers = with lib.maintainers; [ nim65s ];
30 };
31})