Archived
1
0
forked from rarias/bscpkgs

Add more packages to CI

This commit is contained in:
2023-03-02 12:08:02 +01:00
parent 4b5a948918
commit 1a99a7eb73
2 changed files with 39 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"
'';
}