forked from M-Labs/nix-scripts
16 lines
409 B
Nix
16 lines
409 B
Nix
{ stdenv, fetchgit, git, rustc }:
|
|
stdenv.mkDerivation rec {
|
|
name = "libartiq-support-${version}";
|
|
version = import ./artiq-version.nix { inherit stdenv fetchgit git; };
|
|
|
|
src = import ./artiq-src.nix { inherit fetchgit; };
|
|
|
|
buildInputs = [ rustc ];
|
|
phases = [ "buildPhase" ];
|
|
buildPhase =
|
|
''
|
|
mkdir $out
|
|
rustc ${src}/artiq/test/libartiq_support/lib.rs --out-dir $out -Cpanic=unwind -g
|
|
'';
|
|
}
|