From 22d003cc38eb62943689307f6d240deb4ea9e4ca Mon Sep 17 00:00:00 2001 From: Madoura Date: Tue, 20 Dec 2022 02:44:14 -0600 Subject: [PATCH] blaze: init at 3.8.1 --- pkgs/development/libraries/blaze/default.nix | 35 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/libraries/blaze/default.nix diff --git a/pkgs/development/libraries/blaze/default.nix b/pkgs/development/libraries/blaze/default.nix new file mode 100644 index 000000000000..d09f5083a948 --- /dev/null +++ b/pkgs/development/libraries/blaze/default.nix @@ -0,0 +1,35 @@ +{ lib +, stdenv +, fetchFromBitbucket +, cmake +, blas +, lapack-reference +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "blaze"; + version = "3.8.1"; + + src = fetchFromBitbucket { + owner = "blaze-lib"; + repo = finalAttrs.pname; + rev = "v${finalAttrs.version}"; + hash = "sha256-fe6J0aquk4j+b11Sq+ihagWA/LMTYnAgIHbaDCZacP0="; + }; + + strictDeps = true; + nativeBuildInputs = [ cmake ]; + + buildInputs = [ + blas + lapack-reference + ]; + + meta = with lib; { + description = "high performance C++ math library"; + homepage = "https://bitbucket.org/blaze-lib/blaze"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ Madouura ]; + platforms = platforms.linux; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 42721d9defc0..81c760b031e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15253,6 +15253,8 @@ with pkgs; stdenv = llvmPackages_9.stdenv; }; + blaze = callPackage ../development/libraries/blaze { }; + pony-corral = callPackage ../development/compilers/ponyc/pony-corral.nix { }; qbe = callPackage ../development/compilers/qbe { };