Skip to content
Discussion options

You must be logged in to vote

For anyone looking to do this now that miri no longer uses xargo, I was able to get it working with the following:

checks.miri = craneLib.mkCargoDerivation (
  craneConfig # base config, with `src`, `cargoArtifacts`, etc.
  // {
    name = "miri-tests";
    buildPhaseCargoCommand = ''
      # test with miri
      cargo miri run ...
    '';
    doInstallCargoArtifacts = false;
    MIRI_SYSROOT = craneLib.mkCargoDerivation {
      pname = "miri-sysroot";
      version = "0.0.0";
      dontUnpack = true;
      buildPhaseCargoCommand = ''
        MIRI_SYSROOT=$out cargo miri setup
      '';
      dontFixup = true;
      cargoLock =
        pkgs.runCommand "sysroot-cargoLock"
          { nativ…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ipetkov
Comment options

Comment options

You must be logged in to vote
4 replies
@TheNeikos
Comment options

@ipetkov
Comment options

@ipetkov
Comment options

@JeremiahSecrist
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by TheNeikos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants