forked from M-Labs/artiq
flake: break artiq false dependencies
This commit is contained in:
parent
245fe6e9ea
commit
3cddb14174
13
flake.nix
13
flake.nix
|
@ -101,8 +101,13 @@
|
||||||
rustc $src/artiq/test/libartiq_support/lib.rs -Cpanic=unwind -g
|
rustc $src/artiq/test/libartiq_support/lib.rs -Cpanic=unwind -g
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir -p $out/lib $out/bin
|
||||||
cp libartiq_support.so $out
|
cp libartiq_support.so $out/lib
|
||||||
|
cat > $out/bin/libartiq-support << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
echo $out/lib/libartiq_support.so
|
||||||
|
EOF
|
||||||
|
chmod 755 $out/bin/libartiq-support
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -165,13 +170,13 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# FIXME: automatically propagate lld_11 llvm_11 dependencies
|
# FIXME: automatically propagate lld_11 llvm_11 dependencies
|
||||||
checkInputs = [ pkgs.lld_11 pkgs.llvm_11 pkgs.lit outputcheck ];
|
checkInputs = [ pkgs.lld_11 pkgs.llvm_11 libartiq-support pkgs.lit outputcheck ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
python -m unittest discover -v artiq.test
|
python -m unittest discover -v artiq.test
|
||||||
|
|
||||||
TESTDIR=`mktemp -d`
|
TESTDIR=`mktemp -d`
|
||||||
cp --no-preserve=mode,ownership -R $src/artiq/test/lit $TESTDIR
|
cp --no-preserve=mode,ownership -R $src/artiq/test/lit $TESTDIR
|
||||||
LIBARTIQ_SUPPORT=${libartiq-support}/libartiq_support.so lit -v $TESTDIR/lit
|
LIBARTIQ_SUPPORT=`libartiq-support` lit -v $TESTDIR/lit
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue