2019-04-24 15:05:29 +08:00
|
|
|
{ stdenv, fetchgit, git, rustc }:
|
2019-03-31 22:18:36 +08:00
|
|
|
stdenv.mkDerivation rec {
|
2020-12-15 09:30:21 +08:00
|
|
|
pname = "libartiq-support";
|
2019-04-24 15:05:29 +08:00
|
|
|
version = import ./artiq-version.nix { inherit stdenv fetchgit git; };
|
2020-06-10 17:09:43 +08:00
|
|
|
|
2019-03-31 22:18:36 +08:00
|
|
|
src = import ./artiq-src.nix { inherit fetchgit; };
|
2020-06-10 17:09:43 +08:00
|
|
|
|
|
|
|
buildInputs = [ rustc ];
|
2019-03-31 22:18:36 +08:00
|
|
|
phases = [ "buildPhase" ];
|
|
|
|
buildPhase =
|
|
|
|
''
|
|
|
|
mkdir $out
|
2021-09-12 18:17:47 +08:00
|
|
|
rustc $src/artiq/test/libartiq_support/lib.rs --out-dir $out -Cpanic=unwind -g
|
2019-03-31 22:18:36 +08:00
|
|
|
'';
|
|
|
|
}
|