-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.nix
27 lines (25 loc) · 945 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# To cross-compile build this with:
# nix build --arg crossSystem '{ config = "aarch64-unknown-linux-gnu"; }'
{
crossSystem ? null,
nixpkgs ? <nixpkgs>,
pkgs ? import nixpkgs { crossSystem = crossSystem; }
}:
with pkgs;
stdenv.mkDerivation {
name = "thermobech";
# src = ./.;
src = builtins.fetchGit {
url = ./.;
## Currently released Nix does not support submodule fetching, so
## until next release, we live without the benchmarks.
# submodules = true;
};
mesonFlags = [ "-Ddemos-sch=disabled" "-Dtacle-bench=disabled" "-Dautobench=disabled" ];
# Meson is no longer able to pick up Boost automatically.
# https://github.com/NixOS/nixpkgs/issues/86131
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner wayland-protocols ];
buildInputs = [ libev opencl-headers ocl-icd boost wayland ];
}