Skip to content

Instantly share code, notes, and snippets.

@drupol
Created December 12, 2023 21:00
Show Gist options
  • Save drupol/6ead408846a646a452b4d2449b515a49 to your computer and use it in GitHub Desktop.
Save drupol/6ead408846a646a452b4d2449b515a49 to your computer and use it in GitHub Desktop.
❯ nix build .#typst-lsp -L
typst-lsp> Running phase: unpackPhase
typst-lsp> unpacking source archive /nix/store/p1chff6pkwdvrgqxjplxvndbf0p34y46-source
typst-lsp> source root is source
typst-lsp> Executing cargoSetupPostUnpackHook
typst-lsp> Finished cargoSetupPostUnpackHook
typst-lsp> Running phase: patchPhase
typst-lsp> Executing cargoSetupPostPatchHook
typst-lsp> Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
typst-lsp> Finished cargoSetupPostPatchHook
typst-lsp> Running phase: updateAutotoolsGnuConfigScriptsPhase
typst-lsp> Running phase: configurePhase
typst-lsp> Running phase: buildPhase
typst-lsp> Executing cargoBuildHook
typst-lsp> ++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_CC=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc HOST_CXX=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/c++ cargo build -j 8 --target x86_64-unknown-linux-gnu --frozen --profile release
typst-lsp> error: failed to get `anyhow` as a dependency of package `typst-lsp v0.12.0 (/build/source)`
typst-lsp> Caused by:
typst-lsp> failed to load source for dependency `anyhow`
typst-lsp> Caused by:
typst-lsp> Unable to update registry `crates-io`
typst-lsp> Caused by:
typst-lsp> failed to update replaced source registry `crates-io`
typst-lsp> Caused by:
typst-lsp> failed to parse manifest at `/build/cargo-vendor-dir/typst-0.10.0/Cargo.toml`
typst-lsp> Caused by:
typst-lsp> error inheriting `lints` from workspace root manifest's `workspace.lints`
typst-lsp> Caused by:
typst-lsp> failed to find a workspace root
error: builder for '/nix/store/rwv2fzzv40c8wh9sa3rix85q491b264n-typst-lsp-0.12.0.drv' failed with exit code 101;
last 25 log lines:
> Finished cargoSetupPostPatchHook
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> Running phase: buildPhase
> Executing cargoBuildHook
> ++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_CC=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/cc HOST_CXX=/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/c++ cargo build -j 8 --target x86_64-unknown-linux-gnu --frozen --profile release
> error: failed to get `anyhow` as a dependency of package `typst-lsp v0.12.0 (/build/source)`
>
> Caused by:
> failed to load source for dependency `anyhow`
>
> Caused by:
> Unable to update registry `crates-io`
>
> Caused by:
> failed to update replaced source registry `crates-io`
>
> Caused by:
> failed to parse manifest at `/build/cargo-vendor-dir/typst-0.10.0/Cargo.toml`
>
> Caused by:
> error inheriting `lints` from workspace root manifest's `workspace.lints`
>
> Caused by:
> failed to find a workspace root
For full logs, run 'nix log /nix/store/rwv2fzzv40c8wh9sa3rix85q491b264n-typst-lsp-0.12.0.drv'.
~/C/N/nixpkgs > master-2 [r!] ✘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment