3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/halide/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.2 KiB
Nix
Raw Normal View History

2020-10-11 04:09:01 +01:00
{ llvmPackages
, lib
, fetchFromGitHub
, cmake
, libpng
, libjpeg
, mesa
, eigen
, openblas
, blas
, lapack
2018-08-01 13:57:51 +01:00
}:
assert blas.implementation == "openblas" && lapack.implementation == "openblas";
2020-10-11 04:09:01 +01:00
llvmPackages.stdenv.mkDerivation rec {
pname = "halide";
2022-08-25 20:49:09 +01:00
version = "14.0.0";
2018-08-01 13:57:51 +01:00
src = fetchFromGitHub {
owner = "halide";
repo = "Halide";
2020-10-11 04:09:01 +01:00
rev = "v${version}";
2022-08-25 20:49:09 +01:00
sha256 = "sha256-/7U2TBcpSAKeEyWncAbtW6Vk/cP+rp1CXtbIjvQMmZA=";
2018-08-01 13:57:51 +01:00
};
2022-08-25 20:49:09 +01:00
cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" "-DTARGET_WEBASSEMBLY=OFF" ];
2018-08-01 13:57:51 +01:00
# Note: only openblas and not atlas part of this Nix expression
# see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
# to get a hint howto setup atlas instead of openblas
2021-05-30 13:17:56 +01:00
buildInputs = [
llvmPackages.llvm
llvmPackages.lld
llvmPackages.openmp
llvmPackages.libclang
libpng
libjpeg
mesa
eigen
openblas
];
2018-08-01 13:57:51 +01:00
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "C++ based language for image processing and computational photography";
homepage = "https://halide-lang.org";
license = licenses.mit;
platforms = platforms.all;
2022-08-25 20:49:09 +01:00
maintainers = with maintainers; [ ck3d atila ];
2018-08-01 13:57:51 +01:00
};
}