2019-04-24 15:05:29 +08:00
|
|
|
{ stdenv, fetchgit, git, rustc }:
|
2019-03-31 22:18:36 +08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libartiq-support-${version}";
|
2019-04-24 15:05:29 +08:00
|
|
|
version = import ./artiq-version.nix { inherit stdenv fetchgit git; };
|
2019-03-31 22:18:36 +08:00
|
|
|
src = import ./artiq-src.nix { inherit fetchgit; };
|
|
|
|
phases = [ "buildPhase" ];
|
|
|
|
# keep in sync with artiq/test/lit/lit.cfg or remove build from the latter once we don't use buildbot/conda anymore
|
|
|
|
buildPhase =
|
|
|
|
''
|
|
|
|
mkdir $out
|
|
|
|
${rustc}/bin/rustc ${src}/artiq/test/libartiq_support/lib.rs --out-dir $out -Cpanic=unwind -g
|
|
|
|
'';
|
|
|
|
}
|