Add test subset

This commit is contained in:
Rodrigo Arias
2020-06-25 21:02:49 +02:00
parent a83627890e
commit 67c692b648
3 changed files with 34 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
buildInputs = [ clang-ompss2 nanos6 ];
buildPhase = ''
export NIX_DEBUG=6
#export NIX_DEBUG=6
clang -fompss-2 hello.c -o hello
./hello
clang -fompss-2 hello.cc -o hello

View File

@@ -0,0 +1,20 @@
{stdenv, curl, coreutils}:
stdenv.mkDerivation rec {
version = "0.0.1";
name = "internet-test";
src = ./internet.nix;
dontUnpack = true;
buildInputs = [ curl coreutils ];
buildPhase = ''
cat /proc/self/mounts
ls -l /proc
ls -l /
ip addr
${curl}/bin/curl https://www.bsc.es/
'';
installPhase = ''
mkdir -p $out
'';
}