2020-06-17 13:00:49 +02:00
|
|
|
{stdenv, clang-ompss2, nanos6}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.0.1";
|
|
|
|
name = "test-clang-ompss2";
|
|
|
|
src = ./.;
|
|
|
|
buildInputs = [ clang-ompss2 nanos6 ];
|
2023-11-21 17:01:32 +01:00
|
|
|
NIX_DEBUG = 1;
|
2020-06-17 13:00:49 +02:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
clang -fompss-2 hello.c -o hello
|
|
|
|
./hello
|
2023-09-01 16:51:32 +02:00
|
|
|
clang++ -fompss-2 hello.cc -o hello
|
2020-06-17 13:00:49 +02:00
|
|
|
./hello
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
'';
|
|
|
|
}
|