Move test inside pkgs/

This commit is contained in:
2025-03-04 18:00:04 +01:00
parent e47b8f4afb
commit 3d10f3a568
20 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
stdenv
, flangOmpss2Git
, runCommand
, writeText
, strace
}:
stdenv.mkDerivation {
name = "flang-ompss2-test";
buildInputs = [ strace flangOmpss2Git ];
file = writeText "hi.f90"
''
program hello
print *, 'Hello, World!'
end program hello
'';
phases = [ "installPhase" ];
installPhase = ''
set -x
flang "$file" -c -o hi.o
flang hi.o -o hi
install -Dm555 hi "$out"
'';
}