Git Product home page Git Product logo

naersk's Introduction

Naersk

GitHub Actions

Build Rust projects with ease!

Status: project's working!

Introduction

Naersk is a Nix library for building Rust projects - basically, you write:

naersk.buildPackage {
  src = ./.; # Wherever your Cargo.lock and the rest of your source code are
}

... and that turns your code into a Nix derivation which you can, for instance, include in your system:

environment.systemPackages = [
  (naersk.buildPackage {
    src = ./my-cool-app;
  })
];

# (see below for more complete examples)

Under the hood, buildPackage parses Cargo.lock, downloads all dependencies, and compiles your application, fully utilizing Nix's sandboxing and caching abilities; so, with a pinch of salt, Naersk is cargo build, but inside Nix!

If you're using Hydra, you can rely on Naersk as well because it doesn't use IFD - all the parsing happens directly inside Nix code.

Setup

Using Flakes

$ nix flake init -t github:nix-community/naersk
$ nix flake lock

Alternatively, store this as flake.nix in your repository:

{
  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
    naersk.url = "github:nix-community/naersk";
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  };

  outputs = { self, flake-utils, naersk, nixpkgs }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = (import nixpkgs) {
          inherit system;
        };

        naersk' = pkgs.callPackage naersk {};

      in rec {
        # For `nix build` & `nix run`:
        defaultPackage = naersk'.buildPackage {
          src = ./.;
        };

        # For `nix develop` (optional, can be skipped):
        devShell = pkgs.mkShell {
          nativeBuildInputs = with pkgs; [ rustc cargo ];
        };
      }
    );
}

This assumes flake.nix is created next to Cargo.toml & Cargo.lock - if that's not the case for you, adjust ./. in naersk'.buildPackage.

Note that Naersk by default ignores the rust-toolchain file, using whatever Rust compiler version is present in nixpkgs.

If you have a custom rust-toolchain file, you can make Naersk use it this way:

{
  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
    naersk.url = "github:nix-community/naersk";

    nixpkgs-mozilla = {
      url = "github:mozilla/nixpkgs-mozilla";
      flake = false;
    };
  };

  outputs = { self, flake-utils, naersk, nixpkgs, nixpkgs-mozilla }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = (import nixpkgs) {
          inherit system;

          overlays = [
            (import nixpkgs-mozilla)
          ];
        };

        toolchain = (pkgs.rustChannelOf {
          rustToolchain = ./rust-toolchain;
          sha256 = "";
          #        ^ After you run `nix build`, replace this with the actual
          #          hash from the error message
        }).rust;

        naersk' = pkgs.callPackage naersk {
          cargo = toolchain;
          rustc = toolchain;
        };

      in rec {
        # For `nix build` & `nix run`:
        defaultPackage = naersk'.buildPackage {
          src = ./.;
        };

        # For `nix develop` (optional, can be skipped):
        devShell = pkgs.mkShell {
          nativeBuildInputs = [ toolchain ];
        };
      }
    );
}

Using Niv

$ niv init
$ niv add nix-community/naersk

... and then create default.nix with:

let
  pkgs = import <nixpkgs> {};
  sources = import ./nix/sources.nix;
  naersk = pkgs.callPackage sources.naersk {};

in
  naersk.buildPackage ./.

This assumes default.nix is created next to Cargo.toml & Cargo.lock - if that's not the case for you, adjust ./. in naersk.buildPackage.

Note that Naersk by default ignores the rust-toolchain file, using whatever Rust compiler version is present in nixpkgs.

If you have a custom rust-toolchain file, you can make Naersk use it this way:

$ niv add mozilla/nixpkgs-mozilla

... and then:

let
  sources = import ./nix/sources.nix;
  nixpkgs-mozilla = import sources.nixpkgs-mozilla;

  pkgs = import sources.nixpkgs {
    overlays = [
      nixpkgs-mozilla
    ];
  };

  toolchain = (pkgs.rustChannelOf {
    rustToolchain = ./rust-toolchain;
    sha256 = "";
    #        ^ After you run `nix-build`, replace this with the actual
    #          hash from the error message
  }).rust;

  naersk = pkgs.callPackage sources.naersk {
    cargo = toolchain;
    rustc = toolchain;
  };

in
  naersk.buildPackage ./.

Usage

Naersk provides a function called buildPackage that takes an attribute set describing your application's directory, its dependencies etc. - in general, the usage is:

naersk.buildPackage {
  # Assuming there's `Cargo.toml` right in this directory:
  src = ./.;

  someOption = "yass";
  someOtherOption = false;
  CARGO_ENVIRONMENTAL_VARIABLE = "test";
}

Some of the options (described below) are used by Naersk to affect the building process, rest is passed-through into mkDerivation.

Note that you shouldn't call overrideAttrs on a derivation built by Naersk (see the note on overrideAttrs below).

buildPackage's parameters

Attribute Description
name The name of the derivation.
version The version of the derivation.
src Used by naersk as source input to the derivation. When root is not set, src is also used to discover the Cargo.toml and Cargo.lock.
root Used by naersk to read the Cargo.toml and Cargo.lock files. May be different from src. When src is not set, root is (indirectly) used as src.
gitAllRefs Whether to fetch all refs while fetching Git dependencies. Useful if the wanted revision isn't in the default branch. Requires Nix 2.4+. Default: false
gitSubmodules Whether to fetch submodules while fetching Git dependencies. Requires Nix 2.4+. Default: false
cratesDownloadUrl Url for downloading crates from an alternative source Default: "https://crates.io"
cargoBuild The command to use for the build. The argument must be a function modifying the default value.
Default: ''cargo $cargo_options build $cargo_build_options >> $cargo_build_output_json''
cargoBuildOptions Options passed to cargo build, i.e. cargo build <OPTS>. These options can be accessed during the build through the environment variable cargo_build_options.
Note: naersk relies on the --out-dir out option and the --message-format option. The $cargo_message_format variable is set based on the cargo version.
Note: these values are not (shell) escaped, meaning that you can use environment variables but must be careful when introducing e.g. spaces.
The argument must be a function modifying the default value.
Default: [ "$cargo_release" ''-j "$NIX_BUILD_CORES"'' "--message-format=$cargo_message_format" ]
remapPathPrefix When true, rustc remaps the (/nix/store) source paths to /sources to reduce the number of dependencies in the closure. Default: true
cargoTestCommands The commands to run in the checkPhase. Do not forget to set doCheck. The argument must be a function modifying the default value.
Default: [ ''cargo $cargo_options test $cargo_test_options'' ]
cargoTestOptions Options passed to cargo test, i.e. cargo test <OPTS>. These options can be accessed during the build through the environment variable cargo_test_options.
Note: these values are not (shell) escaped, meaning that you can use environment variables but must be careful when introducing e.g. spaces.
The argument must be a function modifying the default value.
Default: [ "$cargo_release" ''-j "$NIX_BUILD_CORES"'' ]
cargoClippyOptions Options passed to cargo clippy, i.e. cargo clippy -- <OPTS>. These options can be accessed during the build through the environment variable cargo_clippy_options.
Note: these values are not (shell) escaped, meaning that you can use environment variables but must be careful when introducing e.g. spaces.
The argument must be a function modifying the default value.
Default: [ "-D warnings" ]
cargoFmtOptions Options passed to cargo fmt, i.e. cargo fmt -- <OPTS>. These options can be accessed during the build through the environment variable cargo_fmt_options.
Note: these values are not (shell) escaped, meaning that you can use environment variables but must be careful when introducing e.g. spaces.
The argument must be a function modifying the default value.
Default: [ "--check" ]
nativeBuildInputs Extra nativeBuildInputs to all derivations. Default: []
buildInputs Extra buildInputs to all derivations. Default: []
cargoOptions Options passed to all cargo commands, i.e. cargo <OPTS> .... These options can be accessed during the build through the environment variable cargo_options.
Note: these values are not (shell) escaped, meaning that you can use environment variables but must be careful when introducing e.g. spaces.
The argument must be a function modifying the default value.
Default: [ ]
doDoc When true, cargo doc is run and a new output doc is generated. Default: false
cargoDocCommands The commands to run in the docPhase. Do not forget to set doDoc. The argument must be a function modifying the default value.
Default: [ ''cargo $cargo_options doc $cargo_doc_options'' ]
cargoDocOptions Options passed to cargo doc, i.e. cargo doc <OPTS>. These options can be accessed during the build through the environment variable cargo_doc_options.
Note: these values are not (shell) escaped, meaning that you can use environment variables but must be careful when introducing e.g. spaces.
The argument must be a function modifying the default value.
Default: [ "--offline" "$cargo_release" ''-j "$NIX_BUILD_CORES"'' ]
release When true, all cargo builds are run with --release. The environment variable cargo_release is set to --release iff this option is set. Default: true
override An override for all derivations involved in the build. Default: (x: x)
overrideMain An override for the top-level (last, main) derivation. If both override and overrideMain are specified, both will be applied to the top-level derivation. Default: (x: x)
singleStep When true, no intermediary (dependency-only) build is run. Enabling singleStep greatly reduces the incrementality of the builds. Default: false
copyBins When true, the resulting binaries are copied to $out/bin.
Note: this relies on cargo's --message-format argument, set in the default cargoBuildOptions. Default: true
copyLibs When true, the resulting binaries are copied to $out/lib.
Note: this relies on cargo's --message-format argument, set in the default cargoBuildOptions. Default: false
copyBinsFilter A jq filter for selecting which build artifacts to release. This is run on cargo's --message-format JSON output.
The value is written to the cargo_bins_jq_filter variable. Default: ''select(.reason == "compiler-artifact" and .executable != null and .profile.test == false)''
copyLibsFilter A jq filter for selecting which build artifacts to release. This is run on cargo's --message-format JSON output.
The value is written to the cargo_libs_jq_filter variable. Default: `''select(.reason == "compiler-artifact" and ((.target.kind
copyDocsToSeparateOutput When true, the documentation is generated in a different output, doc. Default: true
doDocFail When true, the build fails if the documentation step fails; otherwise the failure is ignored. Default: false
removeReferencesToSrcFromDocs When true, references to the nix store are removed from the generated documentation. Default: true
compressTarget When true, the build output of intermediary builds is compressed with Zstandard. This reduces the size of closures. Default: true
copyTarget When true, the target/ directory is copied to $out. Default: false
postInstall Optional hook to run after the compilation is done; inside this script, $out/bin contains compiled Rust binaries. Useful if your application needs e.g. custom environment variables, in which case you can simply run wrapProgram $out/bin/your-app-name in here. Default: false
usePureFromTOML Whether to use the fromTOML built-in or not. When set to false the python package remarshal is used instead (in a derivation) and the JSON output is read with builtins.fromJSON. This is a workaround for old versions of Nix. May be used safely from Nix 2.3 onwards where all bugs in builtins.fromTOML seem to have been fixed. Default: true
mode What to do when building the derivation. Either build, check, test, fmt or clippy.
When set to something other than build, no binaries are generated. Default: "build"

Note on overrideAttrs

When you call buildPackage, Naersk internally builds two derivations: one that compiles all of your application's dependencies and then another one that compiles just your application.

It's done this way to improve compilation speed when you build your program for the second time etc., because then if only your application's code has changed (and Cargo.toml & Cargo.lock stayed the same), Naersk doesn't have to rebuild your dependencies.

This mechanism has a shortcoming, though - in particular, you shouldn't use overrideAttrs to inject something into the build environment:

{ pkgs, naersk, ... }:

let
  app = naersk.buildPackage {
    src = ./.;
  };

in
app.overrideAttrs (p: {
  buildInputs = p.buildInputs + [ pkgs.cmake ];
  SOME_ENV_VAR = "yes";
})

... because that will inject it only into the app-derivation, leaving it inaccessible for your dependencies to use.

Instead, you should pass the parameters directly into the buildPackage invocation:

{ pkgs, naersk, ... }:

naersk.buildPackage {
  src = ./.;
  buildInputs = [ pkgs.cmake ];
  SOME_ENV_VAR = "yes";
}

... or use override, if the names conflict with something already reserved by Naersk:

{ pkgs, naersk, ... }:

naersk.buildPackage {
  src = ./.;

  override = p: {
    # ...
  };
}

... or, if you really have to call overrideAttrs on the final derivation, you should disable the incremental-compilation mechanism:

{ pkgs, naersk, ... }:

let
  app = naersk.buildPackage {
    src = ./.;
    singleStep = true; # here
  };

in
app.overrideAttrs (p: {
  buildInputs = p.buildInputs + [ pkgs.cmake ];
})

(it's just an optimization so there's no harm in disabling it, Naersk should produce the same binary anyway.)

Examples

See: ./examples.

Tips & Tricks

Building a particular example

If you want to build only a particular example, use:

naersk.buildPackage {
  pname = "your-example-name";
  src = ./.;

  overrideMain = old: {
    preConfigure = ''
      cargo_build_options="$cargo_build_options --example your-example-name"
    '';
  };
}

Using CMake

If your application uses CMake, the build process might fail, saying:

CMake Error: The current CMakeCache.txt directory ... is different than the directory ... where CMakeCache.txt was created.

You can fix this problem by removing stale CMakeCache.txt files before the build:

naersk.buildPackage {
  # ...

  preBuild = ''
    find \
        -name CMakeCache.txt \
        -exec rm {} \;
  '';
}

(context)

Using OpenSSL

If your application uses OpenSSL (making the build process fail), try:

naersk.buildPackage {
  # ...

  nativeBuildInputs = with pkgs; [ pkg-config ];
  buildInputs = with pkgs; [ openssl ];
}

naersk's People

Contributors

anderssorby avatar angerman avatar basvandijk avatar blitz avatar bqv avatar cole-h avatar dependabot[bot] avatar dpc avatar eaglesemanation avatar ekleog avatar figsoda avatar gcoakes avatar gerschtli avatar goertzenator avatar icewind1991 avatar ipetkov avatar jd91mzm2 avatar jtojnar avatar knl avatar nmattia avatar oxalica avatar patryk27 avatar pikajude avatar profpatsch avatar ranfdev avatar sandro-fugro avatar sean-bennett112 avatar vtuan10 avatar yusdacra avatar zimbatm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

naersk's Issues

Deal with Cargo.lock which has checksums in the package sections

When upgrading cargo-audit from 0.10.0 to 0.11.1 using the following package:

  cargo-audit = self.naersk.buildPackage rec {
    # remove the 'v' from 'vDEADBEEF'
    name = "cargo-audit-${self.lib.dropString 1 src.rev}";
    src = self.sources.cargo-audit;
    override = oldAttrs: {
      buildInputs = oldAttrs.buildInputs ++ [
        self.openssl
        self.libiconv
      ] ++ self.lib.optionals self.stdenv.isDarwin [
        self.darwin.apple_sdk.frameworks.Security
      ];
      nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ self.pkg-config ];
    };
    doCheck = false;
  };

I ran into the following error:

nix-build -A cargo-audit
these derivations will be built:
  /nix/store/m9vb9ndjv9ivm2syjsd2dqxb7j3hbq25-cargo-audit-0.11.1-deps-0.11.1.drv
  /nix/store/6lkk25g7hynw40gxcy1lrl0d7wajd6bf-cargo-audit-0.11.1-0.11.1.drv
building '/nix/store/m9vb9ndjv9ivm2syjsd2dqxb7j3hbq25-cargo-audit-0.11.1-deps-0.11.1.drv'...
unpacking sources
unpacking source archive /nix/store/xny4jxhq4ah0zlw4sif3m31hsjhpy9qx-dummy-src
source root is dummy-src
patching sources
configuring
building
cargo build --release -j 8 -Z unstable-options --out-dir out
error: no matching package named `abscissa_core` found
location searched: registry `https://github.com/rust-lang/crates.io-index`
required by package `cargo-audit v0.11.1 (/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-cargo-audit-0.11.1-deps-0.11.1.drv-0/dummy-src)`
builder for '/nix/store/m9vb9ndjv9ivm2syjsd2dqxb7j3hbq25-cargo-audit-0.11.1-deps-0.11.1.drv' failed with exit code 101
cannot build derivation '/nix/store/6lkk25g7hynw40gxcy1lrl0d7wajd6bf-cargo-audit-0.11.1-0.11.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/6lkk25g7hynw40gxcy1lrl0d7wajd6bf-cargo-audit-0.11.1-0.11.1.drv' failed

Looking at the Cargo.lock I think the problem is that the checksums for each package are in the package sections themselves rather than in themetadata section that naersk is expecting.

Adding nightly rustc from nixpkgs-mozilla

Hi,

Is it possible to adding rustc from nixpkgs-mozilla? I am using it in my development with shell.nix but when I am using naersk in my build.nix it downloads the older version of rustc. Is this by design?

Having to "override" `rustc` and `cargo` via an overlay feels hacky and undeclarative

To use a different version of the rust toolchain, one has to provide an overlay that shadows rustc and cargo attributes with the versions of the rust toolchain one actually wants.

The approach taken by the regular rustPlatform.buildRustPackage to actually build a new rustPlatform which carries appropriate toollchain versions feels a lot more clean and in the spirit of dependency injection.

I'd appreciate a similar interface for naersk.

Is it possible for naersk to use stable Rust

Hi apologies for my naïvety. I'm very new to Nix.

All the instructions I have found so far describe using nightly rust with naersk. I would rather use a release version of stable rust. Is this possible?

I tried removing "-Z" "unstable-options" from cargoOptions but it seems that was there to allow the use of --out-dir. Can the CARGO_TARGET_DIR be used instead?

Get an output of a library

I need to get the output of just the linked libraries to use in ffi code. It builds correctly and if I do -K I can see the libraries are created with:

  5 myPackages = naersk.buildPackage {                                                
  6     root = ../.;                                                                     
  7     copyBins = true;                                                                 
  8     copyTarget = false;                                                              
  9   };

Cross-compilation fails with "target may not be installed", missing std crate for #[no_std] project

I'm not sure if this is an issue with naersk, or rust-overlay which I am also using, so i've also reported an issue there: oxalica/rust-overlay#12.

I've got the following:

flake.nix
{
  description = "A very basic flake";

  inputs = {
    nixpkgs.url = "nixpkgs/nixos-20.09";

    rust-overlay = {
      url = "github:oxalica/rust-overlay";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    naersk = {
      url = "github:nmattia/naersk";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, rust-overlay, naersk }:
    let
      systems = [
        "aarch64-linux"
        "x86_64-linux"
      ];

      eachSystem = systems: f: builtins.foldl' (attrs: system: attrs // { ${system} = f system; }) { } systems;
    in
    {
      packages = eachSystem systems
        (system:
          let
            pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlay ]; };
            toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
          in
          {
            fw = (naersk.lib.${system}.override {
              cargo = toolchain;
              rustc = toolchain;
            }).buildPackage {
              src = ./sbs-fw;
            };
          }
        );
    };
}
rust-toolchain
[toolchain]
channel = "nightly-2021-01-27"
components = [ "clippy-preview", "miri-preview", "rls-preview", "rust-analysis", "rust-analyzer-preview", "rustfmt", "llvm-tools-preview", "rust-src", "rust-std" ]
targets = [ "thumbv7m-none-eabi", "x86_64-pc-windows-gnu", "x86_64-unknown-linux-gnu" ]

cargo build in the sbs-fw directory works just fine, however, when doing a nix build .#fw the following error occurs:

sbs-fw-deps>    Compiling stm32f1xx-hal v0.6.1
sbs-fw-deps> error: could not compile `sbs-fw`
sbs-fw-deps> To learn more, run the command again with --verbose.
sbs-fw-deps> warning: build failed, waiting for other jobs to finish...
sbs-fw-deps> error: build failed
sbs-fw-deps> error[E0463]: can't find crate for `std`
sbs-fw-deps>   |
sbs-fw-deps>   = note: the `thumbv7m-none-eabi` target may not be installed
sbs-fw-deps> error: aborting due to previous error
sbs-fw-deps> For more information about this error, try `rustc --explain E0463`.
sbs-fw-deps> [naersk] cargo returned with exit code 101, exiting
error: --- Error --- nix-daemon
builder for '/nix/store/azanh3lgylx1gpcdbbdsqzkjy83hp0kp-sbs-fw-deps-0.1.0.drv' failed with exit code 101; last 10 log lines:
    |
    = note: the `thumbv7m-none-eabi` target may not be installed
  
  
  error: aborting due to previous error
  
  
  For more information about this error, try `rustc --explain E0463`.
  
  [naersk] cargo returned with exit code 101, exiting

Using naersk with other Rust tools

Hello,

I find naersk very pleasant and helpful, I would love to be able to use it with other tools in order to produce different outputs, i.e. clippy, tarpaulin.
Would that be achievable?

Thanks

Interface of buildPackage

Right now buildPackage takes two arguments: a path and an attribute set. The reasoning is that in most cases it'll look like this:

naersk.buildPackage ./path/to/src {}

There are two problems:

  1. causes confusion
  2. in most cases we're passing an empty attribute set

So instead I suggest we have a single argument which is either a path or an attribute set with mandatory field src.

@basvandijk @zimbatm @Profpatsch you guys might be using it, thoughts? I'd rather break everything before naersk is officially released.

License

What is the license for naersk?

Thanks! :)

How do you select `--bin` targets?

I've got a program here that has two [[bin]] targets in its Cargo.lock: deploy and activate, and only one of them, deploy, can build on macOS (both of them build on Linux); so I have to run cargo build with --bin deploy to get the binary output on the command-line, and I would love to do the same in Naersk.

I thought that I could achieve victory here by doing:

        darwinOptions = pkgs.lib.optionalAttrs stdenv.isDarwin {
          cargoBuildOptions = opts: opts ++ [ "--bin" "deploy" ]; # The "activate" binary is linux-only.
        }

That, however, causes dependency builds to get the --bin option passed as well, which breaks the build; it also feels weird.

A work-around for this is to also pass singleStep = true;, but that is also un-ideal. (No incremental builds!)

What I'd really like here is to have an option in Naersk that lets users select the --bin targets to output.

Alternatively, it would also be ok to have a way to override the cargo options on dependency builds (defaulting to the overall cargo options function). That way too, we could select the options applying to the "build" of the top-level system, and the options that apply to the system's dependencies.

What do you think?

Compiled binaries depend on the crate source code

When I build my rust project as a Docker image, I get a ~200 MB image. This seems to be because every single one of the crates it depends on gets included into the resulting binary. Here is how I am building a docker image:

How do I remove references to the crates from the compiled binary? The paths to the crates seem to live in the Rust panicinfo crud.

macOS 11: CoreFoundation framework can't be linked on native builds

I'm running into a similar issue as #116 (with a workaround linked in #116 (comment)) on nixpkgs-unstable (pinned to 89281dd1dfed6839610f0ccad0c0e493606168fe) on macOS Big Sur.

As suggested in the workaround, I tried passing nativeBuildInputs = [ xcbuild ]; (dropped the darwin conditional, just to make sure I didn't get it wrong), but that does not fix the naersk build; the log crate's build.rs fail with the error note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (and so do memchr, bitflags and others).

The crate I'm trying to build is a plain checkout of https://github.com/serokell/deploy-rs, patched to pass cargoBuildOptions = opts: opts ++ [ "--verbose" ];; you can find a branch with my changes committed at https://github.com/antifuchs/deploy-rs/compare/attempt-to-fix-corefoundation-error

nix-build output of https://github.com/serokell/deploy-rs
:;    nix-build
these 71 derivations will be built:
  /nix/store/0gvck6jkq4zjnafs36s00sbfxpqs119y-download-memchr-2.3.4.drv
  /nix/store/1faxka82z6g0gjyjlvi2kpj6dykpv404-download-once_cell-1.5.2.drv
  /nix/store/1slpa2f0mrrqsc69a5rvxdwvz1nlzxis-download-futures-util-0.3.8.drv
  /nix/store/f2bjd1l83ash7q5dcjlbmmf0q0hj3pwi-Cargo.lock.drv
  /nix/store/3y41vwfbrpb03kz60n5x18j1932y3cvz-dummy-src.drv
  /nix/store/h5bd1xq34accq28sn6wl1fn59grn3178-download-serde-1.0.117.drv
  /nix/store/4gsx1ry3w6gn1bkhlscnlxazs9sdlfm7-unpack-serde-1.0.117.drv
  /nix/store/r9dgfvg01hw9fb4i9vl0vk01aqvfyjl9-download-inotify-sys-0.1.4.drv
  /nix/store/6pgzvd7j3n8y91pybfjz550glfz9qw2p-unpack-inotify-sys-0.1.4.drv
  /nix/store/7wjlwj88384mw240hz6qzrjx682mpx0z-download-hashbrown-0.9.1.drv
  /nix/store/80x7xjdhv3gxp63al4rip16d2mk1xk82-unpack-regex-1.4.2.drv
  /nix/store/s2p9dak3qrhpi3280swpq7rqv8cxky65-download-tokio-macros-0.2.6.drv
  /nix/store/8ckdkvgj1pa64ki5wdrkj0r75h51lbg8-unpack-tokio-macros-0.2.6.drv
  /nix/store/8i921krhvych57856ga9bvrys2a88hs3-download-proc-macro-hack-0.5.19.drv
  /nix/store/971ihbk19sxq0ggd7hmk22l7xzp9v6s7-download-aho-corasick-0.7.15.drv
  /nix/store/9p6a5g4mqa4pdfbjhvdrqdvfvh6fcv1f-download-thiserror-1.0.22.drv
  /nix/store/akxsnf58920dva9d8s6jc7l01igpi9l6-unpack-regex-syntax-0.6.21.drv
  /nix/store/sbp91549ml3blmswjn57gjy73kya3vf3-download-tokio-0.2.23.drv
  /nix/store/anhv4ry94vbz17wqr96whwkk7npl7lhr-unpack-tokio-0.2.23.drv
  /nix/store/fahq13d8h2fwk9wzjyb2ynacicckckpm-download-serde_derive-1.0.117.drv
  /nix/store/ba76wz55h3f4ciavv139bg3sw71j67yh-unpack-serde_derive-1.0.117.drv
  /nix/store/hxj5b5n5l4wphh15aiyhli5zjadkw7d0-download-miow-0.3.6.drv
  /nix/store/bfv12hyvw68l6mgq1mmra69lrn6vkmkn-unpack-miow-0.3.6.drv
  /nix/store/kn90afb6k92x925ha083n9rxy6g05q0g-download-futures-core-0.3.8.drv
  /nix/store/cylljh1mnfb0c2hqz4142j42h5pkl4m3-unpack-futures-core-0.3.8.drv
  /nix/store/g5mwxig18vccw21m3a6fgfpgxgj8w4zx-download-num-traits-0.2.14.drv
  /nix/store/fj8b3qhrdqkrgclkydjwmsiazifzrx9v-unpack-num-traits-0.2.14.drv
  /nix/store/rnglzqhzkhbdn2c938qvlnk8n2j1l02r-download-unicode-segmentation-1.7.0.drv
  /nix/store/fwnnc19bfjz4by7q43l6gz0inbxg5z7d-unpack-unicode-segmentation-1.7.0.drv
  /nix/store/qmr411jc0qwk7kfh3rka38adm2h39fxd-download-serde_json-1.0.59.drv
  /nix/store/g8bdaizrxl1sfyfl6cc5bwqisrqxvn80-unpack-serde_json-1.0.59.drv
  /nix/store/hafy5h67dlmclyw9zpij2cxpv3w199nj-download-pin-project-internal-1.0.2.drv
  /nix/store/i75rykb26cg96ynkqxhaasnnj3qwsafj-unpack-pin-project-internal-1.0.2.drv
  /nix/store/w9xj6mawldi7ykkmyf6rchvvdpsgg1rm-download-pin-project-1.0.2.drv
  /nix/store/i858kh7mvsn3c81vqs5q83bdc2rvq65k-unpack-pin-project-1.0.2.drv
  /nix/store/ii4ci1l1k4sk8g344b10bdgf20k64pv2-download-fork-0.1.18.drv
  /nix/store/n11iwbl8xck8wzmk70vjq2nrzkwyhmyr-unpack-fork-0.1.18.drv
  /nix/store/g593hm4pj9aaif6c7b5q7i41bb3pq53m-download-termcolor-1.1.2.drv
  /nix/store/nddx5xwagiyjc90ivf7vx5q6qvv4z6k1-unpack-termcolor-1.1.2.drv
  /nix/store/nfmvsis1zz1ndq74wbyf6r4iy0bl5cpa-unpack-thiserror-1.0.22.drv
  /nix/store/kh9p6aibbsyp5ifnfpy9j77gg48an5k5-download-cfg-if-1.0.0.drv
  /nix/store/nkg7fikip23gjhmxgl2hpffc9s38f6jq-unpack-cfg-if-1.0.0.drv
  /nix/store/iryxm71knnkdqvlfr104wdg1b2yyk6pv-download-libc-0.2.80.drv
  /nix/store/p4v3151yxxd6r8hq67bm5qq9bsnb7wba-unpack-libc-0.2.80.drv
  /nix/store/k9scdni34j9k7j7iw1jikybwpvlnnsl6-download-hermit-abi-0.1.17.drv
  /nix/store/pfxhhdv1y7yd8dfr7jm61hlgfmd952b1-unpack-hermit-abi-0.1.17.drv
  /nix/store/laz8pgr1v5yc414xicl2vf428qmpbph2-download-os_str_bytes-2.4.0.drv
  /nix/store/q090wci4ibcd8dnx75p61rjzfc6gm4gz-unpack-os_str_bytes-2.4.0.drv
  /nix/store/qj6jzjhp9qk9fhw6d5fz7hrc6bil6cwf-unpack-memchr-2.3.4.drv
  /nix/store/m7jh1bb6ryzmvx3s10yirmifhxhp90mi-download-signal-hook-registry-1.2.2.drv
  /nix/store/qvwwd6f4qwqb2fpjjls4q73b4y56njhh-unpack-signal-hook-registry-1.2.2.drv
  /nix/store/rjim1xg9sz8am85gl74sqv47ivmsajhd-download-socket2-0.3.17.drv
  /nix/store/r6iy64c0sv901llrc8c1p7qkiq6r33wv-unpack-socket2-0.3.17.drv
  /nix/store/sh0zmlka36r8mwd55gdfy50n37h5bwdd-download-pin-project-lite-0.1.11.drv
  /nix/store/sxglb503bjcij45m33635xs0xh2a10qp-unpack-pin-project-lite-0.1.11.drv
  /nix/store/w63d5swjghngnjdlx3jwwnsm4s1a8xqm-unpack-proc-macro-hack-0.5.19.drv
  /nix/store/wi4rl18p66n2mks6rk9dp9lynvb5czsy-unpack-hashbrown-0.9.1.drv
  /nix/store/wlpp72gmzb1dcdx8ix6byjhb6vjf04qp-download-futures-macro-0.3.8.drv
  /nix/store/x8bw3k97w9k176f5kx83kh2laa23wayc-unpack-futures-macro-0.3.8.drv
  /nix/store/xd0lkmsip0rh85bwny5bvxb7yd61vpc2-unpack-once_cell-1.5.2.drv
  /nix/store/xlslqhchdsgh2kp2w7rkmscjvzvwg5s3-unpack-aho-corasick-0.7.15.drv
  /nix/store/yzih9hhr7ylnpghvkp0s455ap0ryv1r9-unpack-futures-util-0.3.8.drv
  /nix/store/kijhv6kzs3azisna9j751hbgszxqpydx-download-syn-1.0.51.drv
  /nix/store/z18y2drywhgalw7g6az6jx548bk0pwmy-unpack-syn-1.0.51.drv
  /nix/store/j2z7xh7b0algx0jzprb9k1pnny6jqlz7-download-futures-task-0.3.8.drv
  /nix/store/zkf26x3l0250l16b5knc04zhjg1kzxl4-unpack-futures-task-0.3.8.drv
  /nix/store/zc089n5jxhcqajhzimig8fnl0k3r1j7m-download-thiserror-impl-1.0.22.drv
  /nix/store/zzb41z1w0la7agnfbvsnsal66zhyvjmx-unpack-thiserror-impl-1.0.22.drv
  /nix/store/as9p4xasnjkj3szn7z52b7lq7h662b91-crates-io.drv
  /nix/store/j4pzqs0y3azy09564lpa53z2pazq96h8-deploy-rs-deps-0.1.0.drv
  /nix/store/ylz9y8pzgs1c4rvrl27lx3vwzvs1ajsz-deploy-rs-0.1.0.drv
building '/nix/store/80x7xjdhv3gxp63al4rip16d2mk1xk82-unpack-regex-1.4.2.drv'...
building '/nix/store/f2bjd1l83ash7q5dcjlbmmf0q0hj3pwi-Cargo.lock.drv'...
building '/nix/store/971ihbk19sxq0ggd7hmk22l7xzp9v6s7-download-aho-corasick-0.7.15.drv'...

trying https://crates.io/api/v1/crates/aho-corasick/0.7.15/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  110k  100  110k    0     0   811k      0 --:--:-- --:--:-- --:--:--  811k
building '/nix/store/kh9p6aibbsyp5ifnfpy9j77gg48an5k5-download-cfg-if-1.0.0.drv'...

trying https://crates.io/api/v1/crates/cfg-if/1.0.0/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  7934  100  7934    0     0  90159      0 --:--:-- --:--:-- --:--:-- 90159
building '/nix/store/ii4ci1l1k4sk8g344b10bdgf20k64pv2-download-fork-0.1.18.drv'...

trying https://crates.io/api/v1/crates/fork/0.1.18/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  4949  100  4949    0     0  51552      0 --:--:-- --:--:-- --:--:-- 51552
building '/nix/store/kn90afb6k92x925ha083n9rxy6g05q0g-download-futures-core-0.3.8.drv'...

trying https://crates.io/api/v1/crates/futures-core/0.3.8/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13857  100 13857    0     0   133k      0 --:--:-- --:--:-- --:--:--  133k
building '/nix/store/wlpp72gmzb1dcdx8ix6byjhb6vjf04qp-download-futures-macro-0.3.8.drv'...

trying https://crates.io/api/v1/crates/futures-macro/0.3.8/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  9766  100  9766    0     0  85666      0 --:--:-- --:--:-- --:--:-- 85666
building '/nix/store/j2z7xh7b0algx0jzprb9k1pnny6jqlz7-download-futures-task-0.3.8.drv'...

trying https://crates.io/api/v1/crates/futures-task/0.3.8/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 11118  100 11118    0     0  70815      0 --:--:-- --:--:-- --:--:-- 70815
building '/nix/store/1slpa2f0mrrqsc69a5rvxdwvz1nlzxis-download-futures-util-0.3.8.drv'...

trying https://crates.io/api/v1/crates/futures-util/0.3.8/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  130k  100  130k    0     0   586k      0 --:--:-- --:--:-- --:--:--  586k
building '/nix/store/7wjlwj88384mw240hz6qzrjx682mpx0z-download-hashbrown-0.9.1.drv'...

trying https://crates.io/api/v1/crates/hashbrown/0.9.1/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 77734  100 77734    0     0   627k      0 --:--:-- --:--:-- --:--:--  627k
building '/nix/store/k9scdni34j9k7j7iw1jikybwpvlnnsl6-download-hermit-abi-0.1.17.drv'...

trying https://crates.io/api/v1/crates/hermit-abi/0.1.17/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 10065  100 10065    0     0  47701      0 --:--:-- --:--:-- --:--:-- 9829k
building '/nix/store/r9dgfvg01hw9fb4i9vl0vk01aqvfyjl9-download-inotify-sys-0.1.4.drv'...

trying https://crates.io/api/v1/crates/inotify-sys/0.1.4/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  6873  100  6873    0     0  56801      0 --:--:-- --:--:-- --:--:-- 56801
building '/nix/store/iryxm71knnkdqvlfr104wdg1b2yyk6pv-download-libc-0.2.80.drv'...

trying https://crates.io/api/v1/crates/libc/0.2.80/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  501k  100  501k    0     0  3343k      0 --:--:-- --:--:-- --:--:-- 3343k
building '/nix/store/0gvck6jkq4zjnafs36s00sbfxpqs119y-download-memchr-2.3.4.drv'...

trying https://crates.io/api/v1/crates/memchr/2.3.4/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 23077  100 23077    0     0   184k      0 --:--:-- --:--:-- --:--:--  184k
building '/nix/store/hxj5b5n5l4wphh15aiyhli5zjadkw7d0-download-miow-0.3.6.drv'...

trying https://crates.io/api/v1/crates/miow/0.3.6/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 24533  100 24533    0     0   223k      0 --:--:-- --:--:-- --:--:--  223k
building '/nix/store/g5mwxig18vccw21m3a6fgfpgxgj8w4zx-download-num-traits-0.2.14.drv'...

trying https://crates.io/api/v1/crates/num-traits/0.2.14/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 45476  100 45476    0     0   415k      0 --:--:-- --:--:-- --:--:--  415k
building '/nix/store/1faxka82z6g0gjyjlvi2kpj6dykpv404-download-once_cell-1.5.2.drv'...

trying https://crates.io/api/v1/crates/once_cell/1.5.2/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 27660  100 27660    0     0   247k      0 --:--:-- --:--:-- --:--:--  247k
building '/nix/store/laz8pgr1v5yc414xicl2vf428qmpbph2-download-os_str_bytes-2.4.0.drv'...

trying https://crates.io/api/v1/crates/os_str_bytes/2.4.0/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 14657  100 14657    0     0   108k      0 --:--:-- --:--:-- --:--:--  108k
building '/nix/store/w9xj6mawldi7ykkmyf6rchvvdpsgg1rm-download-pin-project-1.0.2.drv'...

trying https://crates.io/api/v1/crates/pin-project/1.0.2/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 54886  100 54886    0     0   273k      0 --:--:-- --:--:-- --:--:--  273k
building '/nix/store/hafy5h67dlmclyw9zpij2cxpv3w199nj-download-pin-project-internal-1.0.2.drv'...

trying https://crates.io/api/v1/crates/pin-project-internal/1.0.2/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 27379  100 27379    0     0   160k      0 --:--:-- --:--:-- --:--:--  160k
building '/nix/store/sh0zmlka36r8mwd55gdfy50n37h5bwdd-download-pin-project-lite-0.1.11.drv'...

trying https://crates.io/api/v1/crates/pin-project-lite/0.1.11/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 25308  100 25308    0     0   106k      0 --:--:-- --:--:-- --:--:--  106k
building '/nix/store/8i921krhvych57856ga9bvrys2a88hs3-download-proc-macro-hack-0.5.19.drv'...

trying https://crates.io/api/v1/crates/proc-macro-hack/0.5.19/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 15556  100 15556    0     0  89919      0 --:--:-- --:--:-- --:--:-- 89919
building '/nix/store/h5bd1xq34accq28sn6wl1fn59grn3178-download-serde-1.0.117.drv'...

trying https://crates.io/api/v1/crates/serde/1.0.117/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 74505  100 74505    0     0   720k      0 --:--:-- --:--:-- --:--:--  720k
building '/nix/store/fahq13d8h2fwk9wzjyb2ynacicckckpm-download-serde_derive-1.0.117.drv'...

trying https://crates.io/api/v1/crates/serde_derive/1.0.117/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 50712  100 50712    0     0   430k      0 --:--:-- --:--:-- --:--:--  430k
building '/nix/store/qmr411jc0qwk7kfh3rka38adm2h39fxd-download-serde_json-1.0.59.drv'...

trying https://crates.io/api/v1/crates/serde_json/1.0.59/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  112k  100  112k    0     0  1020k      0 --:--:-- --:--:-- --:--:-- 1020k
building '/nix/store/m7jh1bb6ryzmvx3s10yirmifhxhp90mi-download-signal-hook-registry-1.2.2.drv'...

trying https://crates.io/api/v1/crates/signal-hook-registry/1.2.2/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 18127  100 18127    0     0  32311      0 --:--:-- --:--:-- --:--:-- 32311
building '/nix/store/rjim1xg9sz8am85gl74sqv47ivmsajhd-download-socket2-0.3.17.drv'...

trying https://crates.io/api/v1/crates/socket2/0.3.17/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 49764  100 49764    0     0   404k      0 --:--:-- --:--:-- --:--:--  404k
building '/nix/store/kijhv6kzs3azisna9j751hbgszxqpydx-download-syn-1.0.51.drv'...

trying https://crates.io/api/v1/crates/syn/1.0.51/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  223k  100  223k    0     0  2110k      0 --:--:-- --:--:-- --:--:-- 2110k
building '/nix/store/g593hm4pj9aaif6c7b5q7i41bb3pq53m-download-termcolor-1.1.2.drv'...

trying https://crates.io/api/v1/crates/termcolor/1.1.2/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 17287  100 17287    0     0   138k      0 --:--:-- --:--:-- --:--:--  138k
building '/nix/store/9p6a5g4mqa4pdfbjhvdrqdvfvh6fcv1f-download-thiserror-1.0.22.drv'...

trying https://crates.io/api/v1/crates/thiserror/1.0.22/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 16603  100 16603    0     0   154k      0 --:--:-- --:--:-- --:--:--  154k
building '/nix/store/zc089n5jxhcqajhzimig8fnl0k3r1j7m-download-thiserror-impl-1.0.22.drv'...

trying https://crates.io/api/v1/crates/thiserror-impl/1.0.22/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13289  100 13289    0     0   145k      0 --:--:-- --:--:-- --:--:--  145k
building '/nix/store/sbp91549ml3blmswjn57gjy73kya3vf3-download-tokio-0.2.23.drv'...

trying https://crates.io/api/v1/crates/tokio/0.2.23/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  403k  100  403k    0     0  3082k      0 --:--:-- --:--:-- --:--:-- 3082k
building '/nix/store/s2p9dak3qrhpi3280swpq7rqv8cxky65-download-tokio-macros-0.2.6.drv'...

trying https://crates.io/api/v1/crates/tokio-macros/0.2.6/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  6460  100  6460    0     0  51269      0 --:--:-- --:--:-- --:--:-- 51269
building '/nix/store/rnglzqhzkhbdn2c938qvlnk8n2j1l02r-download-unicode-segmentation-1.7.0.drv'...

trying https://crates.io/api/v1/crates/unicode-segmentation/1.7.0/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 93069  100 93069    0     0   770k      0 --:--:-- --:--:-- --:--:--  770k
building '/nix/store/3y41vwfbrpb03kz60n5x18j1932y3cvz-dummy-src.drv'...
building '/nix/store/xlslqhchdsgh2kp2w7rkmscjvzvwg5s3-unpack-aho-corasick-0.7.15.drv'...
building '/nix/store/nkg7fikip23gjhmxgl2hpffc9s38f6jq-unpack-cfg-if-1.0.0.drv'...
building '/nix/store/n11iwbl8xck8wzmk70vjq2nrzkwyhmyr-unpack-fork-0.1.18.drv'...
building '/nix/store/cylljh1mnfb0c2hqz4142j42h5pkl4m3-unpack-futures-core-0.3.8.drv'...
building '/nix/store/x8bw3k97w9k176f5kx83kh2laa23wayc-unpack-futures-macro-0.3.8.drv'...
building '/nix/store/zkf26x3l0250l16b5knc04zhjg1kzxl4-unpack-futures-task-0.3.8.drv'...
building '/nix/store/yzih9hhr7ylnpghvkp0s455ap0ryv1r9-unpack-futures-util-0.3.8.drv'...
building '/nix/store/wi4rl18p66n2mks6rk9dp9lynvb5czsy-unpack-hashbrown-0.9.1.drv'...
building '/nix/store/pfxhhdv1y7yd8dfr7jm61hlgfmd952b1-unpack-hermit-abi-0.1.17.drv'...
building '/nix/store/6pgzvd7j3n8y91pybfjz550glfz9qw2p-unpack-inotify-sys-0.1.4.drv'...
building '/nix/store/p4v3151yxxd6r8hq67bm5qq9bsnb7wba-unpack-libc-0.2.80.drv'...
building '/nix/store/qj6jzjhp9qk9fhw6d5fz7hrc6bil6cwf-unpack-memchr-2.3.4.drv'...
building '/nix/store/bfv12hyvw68l6mgq1mmra69lrn6vkmkn-unpack-miow-0.3.6.drv'...
building '/nix/store/fj8b3qhrdqkrgclkydjwmsiazifzrx9v-unpack-num-traits-0.2.14.drv'...
building '/nix/store/xd0lkmsip0rh85bwny5bvxb7yd61vpc2-unpack-once_cell-1.5.2.drv'...
building '/nix/store/q090wci4ibcd8dnx75p61rjzfc6gm4gz-unpack-os_str_bytes-2.4.0.drv'...
building '/nix/store/i858kh7mvsn3c81vqs5q83bdc2rvq65k-unpack-pin-project-1.0.2.drv'...
building '/nix/store/i75rykb26cg96ynkqxhaasnnj3qwsafj-unpack-pin-project-internal-1.0.2.drv'...
building '/nix/store/sxglb503bjcij45m33635xs0xh2a10qp-unpack-pin-project-lite-0.1.11.drv'...
building '/nix/store/w63d5swjghngnjdlx3jwwnsm4s1a8xqm-unpack-proc-macro-hack-0.5.19.drv'...
building '/nix/store/akxsnf58920dva9d8s6jc7l01igpi9l6-unpack-regex-syntax-0.6.21.drv'...
building '/nix/store/4gsx1ry3w6gn1bkhlscnlxazs9sdlfm7-unpack-serde-1.0.117.drv'...
building '/nix/store/ba76wz55h3f4ciavv139bg3sw71j67yh-unpack-serde_derive-1.0.117.drv'...
building '/nix/store/g8bdaizrxl1sfyfl6cc5bwqisrqxvn80-unpack-serde_json-1.0.59.drv'...
building '/nix/store/qvwwd6f4qwqb2fpjjls4q73b4y56njhh-unpack-signal-hook-registry-1.2.2.drv'...
building '/nix/store/r6iy64c0sv901llrc8c1p7qkiq6r33wv-unpack-socket2-0.3.17.drv'...
building '/nix/store/z18y2drywhgalw7g6az6jx548bk0pwmy-unpack-syn-1.0.51.drv'...
building '/nix/store/nddx5xwagiyjc90ivf7vx5q6qvv4z6k1-unpack-termcolor-1.1.2.drv'...
building '/nix/store/nfmvsis1zz1ndq74wbyf6r4iy0bl5cpa-unpack-thiserror-1.0.22.drv'...
building '/nix/store/zzb41z1w0la7agnfbvsnsal66zhyvjmx-unpack-thiserror-impl-1.0.22.drv'...
building '/nix/store/anhv4ry94vbz17wqr96whwkk7npl7lhr-unpack-tokio-0.2.23.drv'...
building '/nix/store/8ckdkvgj1pa64ki5wdrkj0r75h51lbg8-unpack-tokio-macros-0.2.6.drv'...
building '/nix/store/fwnnc19bfjz4by7q43l6gz0inbxg5z7d-unpack-unicode-segmentation-1.7.0.drv'...
building '/nix/store/as9p4xasnjkj3szn7z52b7lq7h662b91-crates-io.drv'...
building '/nix/store/j4pzqs0y3azy09564lpa53z2pazq96h8-deploy-rs-deps-0.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/hfwgdlk3gnz1aaz901g7jagi6rqvz5bm-dummy-src
source root is dummy-src
patching sources
configuring
[naersk] cargo_version (read): 1.45.1
[naersk] cargo_message_format (set): json-diagnostic-rendered-ansi
[naersk] cargo_release: --release
[naersk] cargo_options: -Z unstable-options
[naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format --verbose
[naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
[naersk] RUST_TEST_THREADS: 16
[naersk] cargo_bins_jq_filter: .
[naersk] cargo_build_output_json (created): /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/tmp.eymaF9avdP
[naersk] crate_sources: /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io
[naersk] RUSTFLAGS:
[naersk] CARGO_BUILD_RUSTFLAGS:
[naersk] CARGO_BUILD_RUSTFLAGS (updated): --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources
building
cargo -Z unstable-options build $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format --verbose
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.51
   Compiling libc v0.2.80
   Compiling version_check v0.9.2
   Compiling cfg-if v0.1.10
   Compiling log v0.4.11
   Compiling memchr v2.3.4
   Compiling autocfg v1.0.1
   Compiling lazy_static v1.4.0
   Compiling slab v0.4.2
   Compiling proc-macro-hack v0.5.19
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build --edition=2018 /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/proc-macro2-1.0.24/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=87eddda9180af02e -C extra-filename=-87eddda9180af02e --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name unicode_xid /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/unicode-xid-0.2.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="default"' -C metadata=bb5136942500357e -C extra-filename=-bb5136942500357e --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build --edition=2018 /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/syn-1.0.51/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' --cfg 'feature="visit"' --cfg 'feature="visit-mut"' -C metadata=b74286edd3060b13 -C extra-filename=-b74286edd3060b13 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13 -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/libc-0.2.80/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="align"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=429282eda8a2711f -C extra-filename=-429282eda8a2711f --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name cfg_if --edition=2018 /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/cfg-if-0.1.10/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=039b40e37c9e34e4 -C extra-filename=-039b40e37c9e34e4 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name version_check /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/version_check-0.9.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=9d0949f4c56d214e -C extra-filename=-9d0949f4c56d214e --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/log-0.4.11/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="std"' -C metadata=0e3f3307b0fb77ca -C extra-filename=-0e3f3307b0fb77ca --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/memchr-2.3.4/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' --cfg 'feature="use_std"' -C metadata=ea1edff60e4123ab -C extra-filename=-ea1edff60e4123ab --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name autocfg /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/autocfg-1.0.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=654d794ada336505 -C extra-filename=-654d794ada336505 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name lazy_static /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/lazy_static-1.4.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=ad895d7d4c4ae1f8 -C extra-filename=-ad895d7d4c4ae1f8 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
   Compiling serde v1.0.117
   Compiling bitflags v1.2.1
   Compiling regex-syntax v0.6.21
   Compiling ryu v1.0.5
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name slab /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/slab-0.4.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=3387d504e3360fcd -C extra-filename=-3387d504e3360fcd --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build --edition=2018 /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/proc-macro-hack-0.5.19/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no -C metadata=ef2708db7c52fbff -C extra-filename=-ef2708db7c52fbff --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/serde-1.0.117/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=a32766fd6a99e4e4 -C extra-filename=-a32766fd6a99e4e4 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4 -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/bitflags-1.2.1/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="default"' -C metadata=b0b193ea383b4b70 -C extra-filename=-b0b193ea383b4b70 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70 -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name regex_syntax /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/regex-syntax-0.6.21/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="default"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' -C metadata=aee33e2c8362d009 -C extra-filename=-aee33e2c8362d009 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build --edition=2018 /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/ryu-1.0.5/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no -C metadata=5ef1f0e5d8f3301e -C extra-filename=-5ef1f0e5d8f3301e --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
   Compiling quick-error v1.2.3
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name quick_error /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/quick-error-1.2.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=40c759d4916963c0 -C extra-filename=-40c759d4916963c0 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
   Compiling termcolor v1.1.2
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name termcolor --edition=2018 /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/termcolor-1.1.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=628355e43650debe -C extra-filename=-628355e43650debe --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
   Compiling futures-core v0.3.8
   Compiling proc-macro-nested v0.1.6
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name futures_core --edition=2018 /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/futures-core-0.3.8/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=d3f1ce9d3bfe4732 -C extra-filename=-d3f1ce9d3bfe4732 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/proc-macro-nested-0.1.6/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no -C metadata=c52e556f81b96372 -C extra-filename=-c52e556f81b96372 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372 -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
   Compiling unicode-segmentation v1.7.0
     Running `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name unicode_segmentation /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/unicode-segmentation-1.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=c7c459ef51f58b26 -C extra-filename=-c7c459ef51f58b26 --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources`
error: could not compile `log`.

Caused by:
  process didn't exit successfully: `/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/bin/rustc --crate-name build_script_build /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io/log-0.4.11/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="std"' -C metadata=0e3f3307b0fb77ca -C extra-filename=-0e3f3307b0fb77ca --out-dir /private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca -L dependency=/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps --cap-lints allow --remap-path-prefix /nix/store/j3nbhkwbvzmi44m9c4vv1zz1qwp91jhs-crates-io=/sources` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.build_script_build.cpph2bjl-cgu.8.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/log-0e3f3307b0fb77ca/build_script_build-0e3f3307b0fb77ca.5du7uemnprg17ut0.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.build_script_build.8pk9gtpz-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/memchr-ea1edff60e4123ab/build_script_build-ea1edff60e4123ab.rysrqto1crtaik8.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.15.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.build_script_build.82qu4q1q-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-nested-c52e556f81b96372/build_script_build-c52e556f81b96372.2mkqsv6oc824v7j0.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.15.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.build_script_build.2o1f70s8-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/serde-a32766fd6a99e4e4/build_script_build-a32766fd6a99e4e4.5gme84wqb56ptuwr.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.build_script_build.1yur7gpi-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/bitflags-b0b193ea383b4b70/build_script_build-b0b193ea383b4b70.4y85tyd6aorututy.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.build_script_build.dxgb2p7r-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro-hack-ef2708db7c52fbff/build_script_build-ef2708db7c52fbff.445xxfo5r4oi5imv.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.build_script_build.1k4bkjjd-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/ryu-5ef1f0e5d8f3301e/build_script_build-5ef1f0e5d8f3301e.91p0e0t7ckj3ufw.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.15.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.build_script_build.5775ptbf-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/libc-429282eda8a2711f/build_script_build-429282eda8a2711f.519msglna097tavt.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.15.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.build_script_build.38f5gix6-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/syn-b74286edd3060b13/build_script_build-b74286edd3060b13.3ytg2oxf32gjb0v9.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.15.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.3wplllk47yp2tcnq.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



error: aborting due to previous error


[naersk] cargo returned with exit code 101, exiting
error: --- Error --- nix-daemon
builder for '/nix/store/j4pzqs0y3azy09564lpa53z2pazq96h8-deploy-rs-deps-0.1.0.drv' failed with exit code 101; last 10 log lines:
    = note: "cc" "-m64" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.0.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.1.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.10.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.11.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.12.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.13.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.14.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.15.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.2.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.3.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.4.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.5.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.6.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.7.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.8.rcgu.o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.build_script_build.55w96j39-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/build/proc-macro2-87eddda9180af02e/build_script_build-87eddda9180af02e.3wplllk47yp2tcnq.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-deploy-rs-deps-0.1.0.drv-0/dummy-src/target/release/deps" "-L" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-f900c16b5f7ca499.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a7261fee2449241a.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a6401e0a1e6e3dff.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-729ff2cbee9bdc23.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-594b043cb032b706.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-ad779468bf515a8f.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-de8e9d4775e49d47.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-caa8900842181a36.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-115396c89bf540a3.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-3cd5113a65ba2e5e.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a9b05e1f781b45d0.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-b883374262ffe063.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-5772b503d5985844.rlib" "/nix/store/3rf1v07d5ikm14532qdwnrd34hnkqd7j-rustc-1.45.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-ff0db0c073b4042c.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
    = note: ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
            clang-7: error: linker command failed with exit code 1 (use -v to see invocation)



  error: aborting due to previous error


  [naersk] cargo returned with exit code 101, exiting

Not sure how to proceed from here; the build.rs file that's failing doesn't seem to be using the cc crate, but I'm not familiar enough with how sandboxing works to understand how to further attempt to fix this problem.

`postInstall` and probably other hooks called for main and deps

When one uses hooks in buildPackage with an attribute set, then those hooks are called for the deps as well as the main derivation, this has some downsides:

  1. Hooks might fail with confusing error messages, as one expects them to be run for the main derivation only, and one wonders why there is no $out/bin in the postInstall, but ./result/bin exists when one removes that hook.
  2. Additional logic is necessary to decide whether or not we are in the main or deps derivation. In my particular case I can check for existence of a folder in $out as I'm doing a postInstall, though those conditions might become arbitrary complex if deps and main had overlapping content.
  3. If I tweak the phases/hooks to run additional commands on files (eg. generating code files or patching sources) I have to rebuild the deps derivation despite their output won't change.

To mitigate all of this, I'd propose to not pass those attributes to the deps derivations or introduce special attributes for hooks/phases related to the deps derivation (perhaps a nested set in depsPhases which then accepts the regular phases list as well as the various xPhases, preX, and postX attributes).

Providing native build inputs

It would be nice if it was possible to add an nativeBuildInputs attribute to buildPackage. E.g. in a project of mine I'd like to have

naersk.buildPackage {
  root = ./.;
  buildInputs = with pkgs; [ dbus ];
  nativeBuildInputs = with pkgs; [ pkgconfig rustfmt ];
}

buildInputs is ignored

If I do:

    buildInputs = [ pkgs.openssl pkgs.pkgconfig ];

The buildInputs seem to be completely ignored and the compilation fails (can't find openssl). However, the following works fine:

      override = x: (x // {
        buildInputs =
          x.buildInputs ++ (with pkgs; [ openssl pkgconfig ]);
      });

Support cross compiling

I guess this would involve using rustc.nativeDrv instead of rustc and changing some of the info passed to cargo. I'm no rust expert and wasn't able to get this working in a few minutes of trying.

Cannot get tests to work

I tried to run the tests and noticed that they can currently only be executed on Darwin. Of course fixing this is easy enough with this change in test.nix:

-            NIX_LDFLAGS="-F${pkgs.darwin.apple_sdk.frameworks.CoreFoundation}/Library/Frameworks -framework CoreFoundation ";
+            NIX_LDFLAGS=pkgs.lib.optionalString pkgs.stdenv.isDarwin "-F${pkgs.darwin.apple_sdk.frameworks.CoreFoundation}/Library/Frameworks -framework CoreFoundation ";

However now the build fails with an Argument list too long error:

building '/nix/store/36dggp6mr882b5qiivnf43lbl5r9smsw-ripgrep-deps.drv'...
while setting up the build environment: executing '/nix/store/cinw572b38aln37glr0zb8lxwrgaffl4-bash-4.4-p23/bin/bash': Argument list too long
builder for '/nix/store/vcg9ii189chgrpv484sm3mxg73cfdg3i-cargo-deps.drv' failed with exit code 1
cannot build derivation '/nix/store/hppwp2xzy51fgpqslz6czrazq318g6cy-dependencies-json.drv': 1 dependencies couldn't be built
building '/nix/store/pwicn6facfb7gn8bh8h7cw4anh5hgfxl-ripgrep_all-deps.drv'...
cannot build derivation '/nix/store/7jl38yp7wf2xsixx9p9783nbl1lyjqgb-cargo.drv': 1 dependencies couldn't be built

No rev specified

I'm getting an error which I don't understand. As far as I can tell, I have specified revisions for all of the dependencies, but it errors with No 'rev', 'tag' or 'branch' specified.

{
    "naersk": {
        "branch": "master",
        "description": "Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly.",
        "homepage": "",
        "owner": "nmattia",
        "repo": "naersk",
        "rev": "1dd63230066a93c61ab7a66934eb0aae3f1a3613",
        "sha256": "1xn8m62ypg13jh4zf101qmfa6gy8cl923fgwvk9c33m573h3k154",
        "type": "tarball",
        "url": "https://github.com/nmattia/naersk/archive/1dd63230066a93c61ab7a66934eb0aae3f1a3613.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    },
    "niv": {
        "branch": "master",
        "description": "Easy dependency management for Nix projects",
        "homepage": "https://github.com/nmattia/niv",
        "owner": "nmattia",
        "repo": "niv",
        "rev": "f73bf8d584148677b01859677a63191c31911eae",
        "sha256": "0jlmrx633jvqrqlyhlzpvdrnim128gc81q5psz2lpp2af8p8q9qs",
        "type": "tarball",
        "url": "https://github.com/nmattia/niv/archive/f73bf8d584148677b01859677a63191c31911eae.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    },
    "nixpkgs": {
        "branch": "nixos-19.09",
        "description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
        "homepage": "https://github.com/NixOS/nixpkgs",
        "owner": "NixOS",
        "repo": "nixpkgs-channels",
        "rev": "e10c65cdb35b6a66491e47e5a85f5d456b4f4eea",
        "sha256": "19csb2s3wyav83zcw9dw488zk2fnz6wcxxz8q6hy43dbph86hxwm",
        "type": "tarball",
        "url": "https://github.com/NixOS/nixpkgs-channels/archive/e10c65cdb35b6a66491e47e5a85f5d456b4f4eea.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    }
}
{pkgs, fetchFromGitHub }:

let
  name = "vector";
  version = "0.9.2";
  sources = import ./nix/sources.nix;
  naersk = pkgs.callPackage sources.naersk { };

in naersk.buildPackage {
  inherit name version;
  src = fetchFromGitHub {
    owner = "timberio";
    repo = "vector";
    rev = "v${version}";
    sha256 = "050x6blm11b90kl2bdlk4v5f43fy5js1fpsykayyx9a3q9vd60cv";
  };
}
$ nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}'  --show-trace
error: while evaluating the attribute 'builtDependencies' of the derivation 'vector-0.9.2' at /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/build.nix:133:5:
while evaluating the attribute 'cargoconfig' of the derivation 'vector-deps-0.9.2' at /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/build.nix:133:5:
while evaluating 'toTOML' at /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/builtins/to-toml.nix:119:12, called from /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/build.nix:145:19:
while evaluating 'concatMapStringsSep' at /nix/store/2pdw4wsfdg0mrg9d6kj6myyimimvnj4d-nixos-20.09pre226148.0f5ce2fac0c/nixos/lib/strings.nix:88:5, called from /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/builtins/to-toml.nix:132:7:
while evaluating 'foldl' at /nix/store/2pdw4wsfdg0mrg9d6kj6myyimimvnj4d-nixos-20.09pre226148.0f5ce2fac0c/nixos/lib/lists.nix:80:20, called from /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/builtins/to-toml.nix:122:14:
while evaluating 'foldl'' at /nix/store/2pdw4wsfdg0mrg9d6kj6myyimimvnj4d-nixos-20.09pre226148.0f5ce2fac0c/nixos/lib/lists.nix:82:16, called from /nix/store/2pdw4wsfdg0mrg9d6kj6myyimimvnj4d-nixos-20.09pre226148.0f5ce2fac0c/nixos/lib/lists.nix:86:8:
while evaluating anonymous function at /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/builtins/to-toml.nix:124:16, called from /nix/store/2pdw4wsfdg0mrg9d6kj6myyimimvnj4d-nixos-20.09pre226148.0f5ce2fac0c/nixos/lib/lists.nix:85:14:
while evaluating 'tomlTy' at /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/builtins/to-toml.nix:102:12, called from /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/builtins/to-toml.nix:126:20:
while evaluating the attribute 'v' at /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/builtins/to-toml.nix:130:44:
while evaluating the attribute 'source' at /nix/store/g76zggan9y6g82wais1zmrwx5d41vpvd-source/build.nix:146:7:
No 'rev', 'tag' or 'branch' specified

Don't use --offline with doc

Running doc command:
  cargo doc --offline
error: Found argument '--offline' which wasn't expected, or isn't valid in this context

Git dependency: failed to clone

I have a dependency in my Cargo.toml that is specified via a Git repo and rev: https://github.com/curiousleo/keygen/blob/niv/Cargo.toml#L12-L14

This fails to build with the following error:

$ nix-build .
warning: dumping very large path (> 256 MiB); this may run out of memory
these derivations will be built:
  /nix/store/99n7i74rgpd4r5az8j8jhc53l7r4ssnd-keygen-deps-0.1.0.drv
  /nix/store/gl8p2sf311kzpy93r76lfmf6575495pk-keygen-0.1.0.drv
building '/nix/store/99n7i74rgpd4r5az8j8jhc53l7r4ssnd-keygen-deps-0.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/r9bnlqy5709ch7c5kxml9bnpwqpz0hpl-dummy-src
source root is dummy-src
patching sources
configuring
building
cargo build --release -j 8 -Z unstable-options --out-dir out
    Updating git repository `https://gitlab.com/sequoia-pgp/sequoia.git`
warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name; class=Net (12)
warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name; class=Net (12)
error: failed to load source for a dependency on `sequoia-openpgp`

Caused by:
  Unable to update https://gitlab.com/sequoia-pgp/sequoia.git?rev=7735b05e8cf82ae943e8b7b0dfed4a26cd6c3db4#7735b05e

Caused by:
  failed to clone into: /build/dummy-src/.cargo-home/git/db/sequoia-67f184fe09141952

Caused by:
  [6] Couldn't resolve host name; class=Net (12)
builder for '/nix/store/99n7i74rgpd4r5az8j8jhc53l7r4ssnd-keygen-deps-0.1.0.drv' failed with exit code 101
cannot build derivation '/nix/store/gl8p2sf311kzpy93r76lfmf6575495pk-keygen-0.1.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/gl8p2sf311kzpy93r76lfmf6575495pk-keygen-0.1.0.drv' failed

(cargo build succeeds, so that revision is definitely there and can be downloaded.)

Repro case: this branch:

$ pushd $(mktemp -d)
$ curl -L https://api.github.com/repos/curiousleo/keygen/tarball/niv | tar xz --strip=1
$ nix-build .

cargo < 0.41 fails over `json-diagnostic-rendered-ansi`

When building with an unstable cargo from nixpkgs-mozilla, my build fails with this error:

unpacking sources
unpacking source archive /nix/store/xxmhi9dqc6g0ph1y9d2345gjda8l598n-dummy-src
source root is dummy-src
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
[naersk] cargo_release: --release
[naersk] cargo_options: -Z unstable-options
[naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=json-diagnostic-rendered-ansi
[naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
[naersk] cargo_bins_jq_filter: .
[naersk] cargo_build_output_json (created): /build/tmp.0gyePOoAvn
@nix { "action": "setPhase", "phase": "buildPhase" }
building
cargo -Z unstable-options build $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=json-diagnostic-rendered-ansi
error: 'json-diagnostic-rendered-ansi' isn't a valid value for '--message-format <FMT>'
        [possible values: human, json, short]

        Did you mean 'json'?

USAGE:
    cargo build --jobs <N> --message-format <FMT> --out-dir <PATH> --release

For more information try --help
[naersk] cargo returned with exit code 1, exiting

I guess Cargo changed what values they accept for --message-format. This line in my project fixed it for me:

   ...
  naersk.buildPackage {
    src = ./.;
    buildInputs = with pkgs; [
      pkgconfig
      openssl
    ];
    doCheck = false;
>   cargoBuildOptions = _: [ "$cargo_release" ''-j "$NIX_BUILD_CORES"'' "--out-dir" "out" "--message-format=json" ];
  }

failed to load source for a dependency

I put together a small reproducible failure for an application I'd like to build: https://gist.github.com/manveru/1ce412cb3c45ee92b7bfae2485fa5923

I'd really appreciate the help. We're building the app using buildRustPackage right now, but your project looks like a much better approach and would save me hours each day waiting for builds.

Right now it fails with this error:

these derivations will be built:
  /nix/store/m6dhgl1zh9a76lha2d0ccy8jiks3hjvz-rust-workspace-deps-unknown.drv
  /nix/store/7vplw482cafda17vpq9b32f1m4njwlnn-rust-workspace-unknown.drv
building '/nix/store/m6dhgl1zh9a76lha2d0ccy8jiks3hjvz-rust-workspace-deps-unknown.drv'...
unpacking sources
unpacking source archive /nix/store/5krfa643444zj6cj1wrq67vvk6bykaky-dummy-src
source root is dummy-src
patching sources
configuring
building
cargo build --release -j 8 -Z unstable-options --out-dir out
error: failed to load source for a dependency on `cardano-legacy-address`

Caused by:
  Unable to update /build/dummy-src/chain-deps/cardano-legacy-address

Caused by:
  failed to read `/build/dummy-src/chain-deps/cardano-legacy-address/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
builder for '/nix/store/m6dhgl1zh9a76lha2d0ccy8jiks3hjvz-rust-workspace-deps-unknown.drv' failed with exit code 101
cannot build derivation '/nix/store/7vplw482cafda17vpq9b32f1m4njwlnn-rust-workspace-unknown.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7vplw482cafda17vpq9b32f1m4njwlnn-rust-workspace-unknown.drv' failed

I tried to determine why the src doesn't contain the chain-deps directory, I use fetchgit to make sure that the git submodule is present in the src i pass to naersk.buildPackage, but that doesn't seem to make a difference.

Buildscripts are not executed in a workspace

Right now, I'm attempting to build Alacritty using naersk, but the build always fails with error: couldn't read /build/source/target/debug/build/alacritty-a1caefd600e8e902/out/gl_bindings.rs: No such file or directory (os error 2).

Alacritty has a few modules in its workspace: alacritty, which does the heavy-lifting of rendering, etc., and alacritty_terminal, which has most of the logic not directly tied to the display itself. To facilitate this, the alacritty submodule has a buildscript that generates GL bindings at compile-time. Using this project, however, these sub-build.rss are not run resulting in a non-working binary being produced (when singleStep = true; otherwise it fails with the above error).

I tested this with a simple project with the following file structure and default.nix:

tree
.
├── build.rs
├── Cargo.lock
├── Cargo.toml
├── default.nix
├── mem1
│  ├── build.rs
│  ├── Cargo.toml
│  └── src
│     └── main.rs
├── mem2
│  ├── build.rs
│  ├── Cargo.toml
│  └── src
│     └── main.rs
└── nix
     ├── sources.json
     └── sources.nix
default.nix
let
    pkgs = import <nixpkgs> {};
    sources = import ./nix/sources.nix;
    naersk = pkgs.callPackage sources.naersk {};
in naersk.buildPackage ./.

The root Cargo.toml just consists of specifying the workspace members. mem{1,2} have the following in their build.rs:

fn main() {
    println!("cargo:warning=EXECUTED MEM1"); // or MEM2
}

and neither of these get executed.

Compare

nix-build output
❯ nix-build --check
checking outputs of '/nix/store/xdfzx7d2rll4p4bkjppvmy7yk2m70vhb-rust-workspace-unknown.drv'...
unpacking sources
unpacking source archive /nix/store/0bjq3l2milnprg7znbjrj88cxqj9h224-buildtest
source root is buildtest
patching sources
configuring
[naersk] cargo_release: --release
[naersk] cargo_options: -Z unstable-options
[naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=json-diagnostic-rendered-ansi
[naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
[naersk] cargo_bins_jq_filter: select(.reason == "compiler-artifact" and .executable != null and .profile.test == false)
[naersk] cargo_build_output_json (created): /build/tmp.o9Y5MIAjH7
[naersk] pre-installing dep /nix/store/m9qkhpz0nq9abpkchz9k8vfd0rm6mg25-rust-workspace-deps-unknown
building
cargo -Z unstable-options build $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=json-diagnostic-rendered-ansi
   Compiling mem1 v0.1.0 (/build/buildtest/mem1)
   Compiling mem2 v0.1.0 (/build/buildtest/mem2)
    Finished release [optimized] target(s) in 0.15s
running tests
cargo -Z unstable-options test $cargo_release -j "$NIX_BUILD_CORES"
   Compiling mem2 v0.1.0 (/build/buildtest/mem2)
   Compiling mem1 v0.1.0 (/build/buildtest/mem1)
    Finished release [optimized] target(s) in 0.19s
     Running target/release/deps/mem1-309da8c0a13658d5

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/release/deps/mem2-e75a6163211a8226

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

installing
[naersk] Using file /build/tmp.o9Y5MIAjH7 to retrieve build products
[naersk] found executable mem2 -> /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown/bin/mem2
[naersk] found executable mem1 -> /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown/bin/mem1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown
shrinking /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown/bin/mem2
shrinking /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown/bin/mem1
strip is /nix/store/7bhi29ainf5rjrk7k7wyhndyskzyhsxh-binutils-2.31.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown/bin
patching script interpreter paths in /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown
checking for references to /build/ in /nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown...
/nix/store/dr5p7czbwvavvqxjy2ws7bg9njliaj04-rust-workspace-unknown

to

cargo build output
❯ cargo build
   Compiling mem1 v0.1.0 (/tmp/buildtest/mem1)
   Compiling mem2 v0.1.0 (/tmp/buildtest/mem2)
warning: EXECUTED MEM1
warning: EXECUTED MEM2
    Finished dev [unoptimized + debuginfo] target(s) in 0.23s

TL;DR: Rust projects with a workspace setup containing member(s) with a build.rs file fail to run their buildscripts.

Git submodules not being initialized?

Hi!

I'm trying to use this tool to build vectordotdev/vector@0836bcd which depends on bytecodealliance/lucet@d741e2e

You can see here, one of the subcrates of lucet, lucet-wasi, depends on wasi-common which is a git submodule in the root.

image

https://github.com/bytecodealliance/lucet/blob/d741e2e30df19d1f8abd1a8660219ac494336b76/lucet-wasi/Cargo.toml#L25

image

image

This seems to not be handled. :(

image.

You can reproduce this with:

git clone [email protected]:timberio/vector.git
git checkout 0836bcdc0c63e35061c003079edff06af6e3f198
make neu-release-binary-x86_64-unknown-linux-gnu

I see NixOS/nix#3166 but haven't managed to invoke it.

image

default-run attribute in Cargo.toml causes dependency derivation to fail

these derivations will be built:
  /nix/store/i4nq0h2ydq4z5y0g3dfcrsg2hcf7s7hc-upd8r-deps-0.1.0.drv
  /nix/store/03gr3ymszkd7z1qnysgv12a48qyb4b0y-upd8r-0.1.0.drv
building '/nix/store/i4nq0h2ydq4z5y0g3dfcrsg2hcf7s7hc-upd8r-deps-0.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/7yb6lim04gyci7arcnh9id13b9vx8csh-dummy-src
source root is dummy-src
patching sources
configuring
[naersk] cargo_version (read): 1.49.0-nightly (d5556aeb8 2020-11-04)
[naersk] cargo_message_format (set): json-diagnostic-rendered-ansi
[naersk] cargo_release: --release
[naersk] cargo_options: -Z unstable-options
[naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format
[naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
[naersk] RUST_TEST_THREADS: 16
[naersk] cargo_bins_jq_filter: .
[naersk] cargo_build_output_json (created): /build/tmp.ZJxk5qdxzh
[naersk] crate_sources: /nix/store/awnjgdka64ins3amyn0yvh227x5wngn0-crates-io
[naersk] RUSTFLAGS:
[naersk] CARGO_BUILD_RUSTFLAGS:
[naersk] CARGO_BUILD_RUSTFLAGS (updated): --remap-path-prefix /nix/store/awnjgdka64ins3amyn0yvh227x5wngn0-crates-io=/sources
building
cargo -Z unstable-options build $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format
error: failed to parse manifest at `/build/dummy-src/Cargo.toml`

Caused by:
  default-run target `bot` not found
[naersk] cargo returned with exit code 101, exiting
builder for '/nix/store/i4nq0h2ydq4z5y0g3dfcrsg2hcf7s7hc-upd8r-deps-0.1.0.drv' failed with exit code 101
cannot build derivation '/nix/store/03gr3ymszkd7z1qnysgv12a48qyb4b0y-upd8r-0.1.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/03gr3ymszkd7z1qnysgv12a48qyb4b0y-upd8r-0.1.0.drv' failed

It seems like [[bin]] stanzas are stripped already, so I'd guess this would be a pretty simple fix.

How to specify a hook (e.g. postInstall) only for the main package?

I was wondering if it's possible (or could be made possible) to keep extraneous top-level directories. For example, my project has a completions folder that I would like available, so I can add installShellCompletion to my postInstall. Currently, I do installShellCompletion --fish ${./completions/passrs.fish}, but it would be nice if I could instead just do installShellCompletion --fish $src/completions/passrs.fish.

Binary not on PATH in nix-shell

Hello, I tried installing a package with Naersk.

I'm not sure whether I'm doing something wrong or there's an issue.

I expected grex to be on PATH but it isn't. I made a repo to help reproduce what I'm seeing:

git clone https://github.com/energizah/naersk-demo.git
cd naersk-demo
nix-shell
grex --help

Gives grex: Command not found

On the other hand,

git clone https://github.com/pemistahl/grex
cd grex
cargo build
cargo run grex --help

works fine.

Cannot detect Cargo.toml's [workspace] with nested members declaration

Hi, I am using niv to add https://github.com/rust-analyzer/rust-analyzer/ into my project.

Then, I have the following code:

rust-analyzer-src = (import ./nix/sources.nix).rust-analyzer;
rust-analyzer = pkgs.naerks.buildPackage rust-analyzer-src;

into my shell.nix. However, when I try to run nix-shell I got the following error:

opening file ' nix/store/r193....-source/crates/*/Cargo.toml': No such file or directory while the crates folder exists in the rust-analyzer package.

vcpkg fails to build on latest nightly: "readme file with name '../README.md' was not found"

vcpkg, one of the packages built by naersk specifies a README located outside its crate directory, in its wider cargo workspace root. It appears that naersk didn't catch that.

error: failed to get `clap` as a dependency of package `cign v0.1.0 (/build/dummy-src)`

Caused by:
  failed to load source for dependency `clap`

Caused by:
  Unable to update registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to update replaced source registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to parse manifest at `/nix/store/ybindkbcy3d74hyjcc3kpygkdmdf8cwm-crates-io/vcpkg-0.2.9/Cargo.toml`

Caused by:
  readme file with name '../README.md' was not found
[naersk] cargo returned with exit code 101, exiting
builder for '/nix/store/b1j64hn8p0mgxjnb7nsbcrfqx2x7pjqj-cign-deps-0.1.0.drv' failed with exit code 101
cannot build derivation '/nix/store/grrd3cb3y8pdx60w9nhzrwmj14jm1nkq-cign-0.1.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/grrd3cb3y8pdx60w9nhzrwmj14jm1nkq-cign-0.1.0.drv' failed

Cannot detect local path dependencies

I have this dependency in my Cargo.toml:

[package]
name = "rust-backend"
version = "0.1.0"
authors = ["Andika Demas Riyandi <[email protected]>"]
edition = "2018"
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
...
common = { path = "../common/", optional=false }
...

[build-dependencies]
ructe = { version = "0.12", features = ["sass", "tide013"] }

Since my common package is a local library, when I build my rust-backend I got the following error:

error: --- Error --------------------------------------------------------------------------------------------------- nix
builder for '/nix/store/mqg5569yzxxdxw8nfvq920lv41gpzwi3-rust-backend-deps-0.1.0.drv' failed with exit code 101; last 10 log lines:

  Caused by:
    Unable to update /tmp/nix-build-rust-backend-deps-0.1.0.drv-0/common

  Caused by:
    failed to read `/tmp/nix-build-rust-backend-deps-0.1.0.drv-0/common/Cargo.toml`

  Caused by:
    No such file or directory (os error 2)
  [naersk] cargo returned with exit code 101, exiting
error: --- Error --------------------------------------------------------------------------------------------------- nix

I tried with rustPlatform.buildRustPackage and the behavior is the same. is there something wrong with my setup?

You can find the project here: https://github.com/numtide/todomvc-nix/tree/flake

Support -Z build-std

See

Currently, if you try to build a project that uses build-std, you'll get errors about dependencies that are not found, but definitely
exist.

Example project

.cargo/config.toml

[build]
target = "riscv64gc-unknown-none-elf"

[unstable]
build-std = ["core"]

src/lib.rs

#![no_std]

default.nix

let
  sources = import ./nix/sources.nix;
  nixpkgs-mozilla = import sources.nixpkgs-mozilla;
  rust = pkgs.latest.rustChannels.nightly.rust.override {
    targets = [ "riscv64gc-unknown-none-elf" ];
    extensions = [ "rust-src" ];
  };
  pkgs = import sources.nixpkgs {
    overlays = [
      nixpkgs-mozilla
      (self: super: {
        rustc = rust;
        cargo = rust;
      })
    ];
  };
  naersk = pkgs.callPackage sources.naersk { };
in naersk.buildPackage ./.

If I try to build this project, I get the following error:

Error

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/8aaja1qq93a0bvv48bij1n5gcwsblidy-foo
source root is foo
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
[naersk] cargo_version (read): 1.51.0-nightly (34170fcd6 2021-02-04)
[naersk] cargo_message_format (set): json-diagnostic-rendered-ansi
[naersk] cargo_release: --release
[naersk] cargo_options: -Z unstable-options
[naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format
[naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
[naersk] RUST_TEST_THREADS: 16
[naersk] cargo_bins_jq_filter: select(.reason == "compiler-artifact" and .executable != null and .profile.test == false)
[naersk] cargo_build_output_json (created): /build/tmp.6WWPHk4QeB
[naersk] crate_sources: /nix/store/yslb0dsplxhn0lyzziy7acpy3gfvl1sy-crates-io
[naersk] RUSTFLAGS: 
[naersk] CARGO_BUILD_RUSTFLAGS: 
[naersk] CARGO_BUILD_RUSTFLAGS (updated): --remap-path-prefix /nix/store/yslb0dsplxhn0lyzziy7acpy3gfvl1sy-crates-io=/sources
[naersk] pre-installing dep /nix/store/a1dz3j1gpk470f1pnh7vd8znxfgm0254-foo-deps-0.1.0
@nix { "action": "setPhase", "phase": "buildPhase" }
building
cargo -Z unstable-options build $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format
error: no matching package named `cfg-if` found
location searched: registry `https://github.com/rust-lang/crates.io-index`
required by package `test v0.0.0 (/nix/store/ll0i3ynrs532lnc7a3hahlsbvj794lcd-rust-1.52.0-nightly-2021-02-07-9778068cb/lib/rustlib/src/rust/library/test)`
[naersk] cargo returned with exit code 101, exiting

Customize doc building with cargoDocOptions

We pass a fixed set of options to cargo doc:

https://github.com/nmattia/naersk/blob/ea0f6599da0c530240c5d1586cbadbb695df2376/build.nix#L324

Instead, we could define a cargoDocOptions parameter, much like cargoTestOptions:

https://github.com/nmattia/naersk/blob/ea0f6599da0c530240c5d1586cbadbb695df2376/config.nix#L54-L60

which can then similarly be set as an environment variables: https://github.com/nmattia/naersk/blob/ea0f6599da0c530240c5d1586cbadbb695df2376/build.nix#L200

they can then be used in the command itself, i.e.:

-  logRun cargo doc --offline "''${cargo_release[*]}"
+  logRun cargo doc $cargo_doc_options

One derivation per crate?

Hey!

I'm just now trying naersk for the first real time, and it looks really comfortable to use, which is great!

That said, I'm surprised about one thing: it looks to me like naersk does two builds, one with the dependencies and one with the code in the local workspace.

This is already great, as it allows to only rebuild the local workspace after a code change.

However, I wonder: would that not make it possible to easily have one derivation per crate, in a way similar to what carnix/crate2nix did? I must say I like the naersk API much more (not having to auto-generate stuff is really helpful when debugging), but I feel like there's quite a bit of missed incrementality here, for when one adds a dependency, or touches the top-level crate of the workspace for instance.

That said, maybe the way naersk does pre-builds is not the same as the one crates2nix/carnix do it? I've seen things related to workspaces in the build logs, which maybe make such a change much more complex than I'd intuitively think?

Problem building -sys crates on darwin, direct frameworks linking

I have a problem building crates with dependencies linking to darwin frameworks.

❯ nix build . --print-build-logs --keep-failed
warning: Git tree '/private/tmp/link-problem' is dirty
link-problem-deps> unpacking sources
link-problem-deps> unpacking source archive /nix/store/0jd4npi1rsk1g2gxpi2jyd5h5290jax8-dummy-src
link-problem-deps> source root is dummy-src
link-problem-deps> patching sources
link-problem-deps> configuring
link-problem-deps> [naersk] cargo_version (read): 1.45.1
link-problem-deps> [naersk] cargo_message_format (set): json-diagnostic-rendered-ansi
link-problem-deps> [naersk] cargo_release: --release
link-problem-deps> [naersk] cargo_options: -Z unstable-options
link-problem-deps> [naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format
link-problem-deps> [naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
link-problem-deps> [naersk] RUST_TEST_THREADS: 8
link-problem-deps> [naersk] cargo_bins_jq_filter: .
link-problem-deps> [naersk] cargo_build_output_json (created): /private/tmp/nix-build-link-problem-deps-0.1.0.drv-2/tmp.CjPd08LtII
link-problem-deps> [naersk] crate_sources: /nix/store/1ickwwx0s69b6j459fjwb6q8j8m3ighp-crates-io
link-problem-deps> [naersk] RUSTFLAGS:
link-problem-deps> [naersk] CARGO_BUILD_RUSTFLAGS:
link-problem-deps> [naersk] CARGO_BUILD_RUSTFLAGS (updated): --remap-path-prefix /nix/store/1ickwwx0s69b6j459fjwb6q8j8m3ighp-crates-io=/sources
link-problem-deps> building
link-problem-deps> cargo -Z unstable-options build $cargo_release -j "$NIX_BUILD_CORES" --out-dir out --message-format=$cargo_message_format
link-problem-deps>    Compiling libc v0.2.77
link-problem-deps>    Compiling either v1.6.0
link-problem-deps>    Compiling glob v0.3.0
link-problem-deps>    Compiling link-problem v0.1.0 (/private/tmp/nix-build-link-problem-deps-0.1.0.drv-2/dummy-src)
link-problem-deps>    Compiling itertools v0.9.0
link-problem-deps>    Compiling jobserver v0.1.21
link-problem-deps>    Compiling cc v1.0.59
link-problem-deps>    Compiling zstd-sys v1.4.17+zstd.1.4.5
link-problem-deps> error: failed to run custom build command for `zstd-sys v1.4.17+zstd.1.4.5`
link-problem-deps> Caused by:
link-problem-deps> process didn't exit successfully: `/private/tmp/nix-build-link-problem-deps-0.1.0.drv-2/dummy-src/target/release/build/zstd-sys-2ea56e046f6efbe1/build-script-build` (exit code: 1)
link-problem-deps> --- stdout
link-problem-deps> TARGET = Some("x86_64-apple-darwin")
link-problem-deps> HOST = Some("x86_64-apple-darwin")
link-problem-deps> CC_x86_64-apple-darwin = None
link-problem-deps> CC_x86_64_apple_darwin = None
link-problem-deps> HOST_CC = None
link-problem-deps> CC = Some("clang")
link-problem-deps> CFLAGS_x86_64-apple-darwin = None
link-problem-deps> CFLAGS_x86_64_apple_darwin = None
link-problem-deps> HOST_CFLAGS = None
link-problem-deps> CFLAGS = None
link-problem-deps> CRATE_CC_NO_DEFAULTS = None
link-problem-deps> DEBUG = Some("false")
link-problem-deps> --- stderr
link-problem-deps> error occurred: No such file or directory (os error 2)
link-problem-deps> [naersk] cargo returned with exit code 101, exiting
note: keeping build directory '/private/tmp/nix-build-link-problem-deps-0.1.0.drv-2'

For some reason it links not to nix store link but directly to a system framework

❯ otool -L /private/tmp/nix-build-link-problem-deps-0.1.0.drv-2/dummy-src/target/release/build/zstd-sys-2ea56e046f6efbe1/build-script-build
/private/tmp/nix-build-link-problem-deps-0.1.0.drv-2/dummy-src/target/release/build/zstd-sys-2ea56e046f6efbe1/build-script-build:
        /nix/store/3jfjr7bil98cx71204578pvc68bjy7dm-Libsystem-osx-10.12.6/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
        /nix/store/3jfjr7bil98cx71204578pvc68bjy7dm-Libsystem-osx-10.12.6/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1677.104.0)

despite I add CoreFoundation to buildInputs.
Here is a minimal reproducer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.