Skip to content

[nix develop] user flake compilation, read-only filesystem #415

@c4lliope

Description

@c4lliope

During a local flake compilation, some rust process ends in an error; nix log .... displays:

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/w9lm1rcj1n9h19nrwh6fjjynqd894x8b-base64-0.1.0
source root is base64-0.1.0
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Compiling 1 file (.ex)
�[1m�[32m    Updating�[0m crates.io index
�[1m�[32m Downloading�[0m crates ...
�[1m�[32m  Downloaded�[0m lazy_static v1.4.0
�[1m�[31merror�[0m�[1m:�[0m failed to download replaced source registry `crates-io`

Caused by:
  failed to create directory `/homeless-shelter/.cargo/registry/cache/index.crates.io-6f17d22bba15001f`

Caused by:
  Read-only file system (os error 30)

== Compilation error in file lib/base64.ex ==
** (RuntimeError) calling `cargo metadata` failed.

    (rustler 0.34.0) lib/rustler/compiler/config.ex:81: Rustler.Compiler.Config.metadata!/1
    (rustler 0.34.0) lib/rustler/compiler/config.ex:63: Rustler.Compiler.Config.build/1
    (rustler 0.34.0) lib/rustler/compiler.ex:8: Rustler.Compiler.compile_crate/3
    lib/base64.ex:15: (module)

I guess my only clue is this /homeless-shelter path; does this seem like a nix-on-droid concept? Seems like no searches are going to have any luck, especially because homeless shelters are an emergent gameplay mechanic for the Rust videogame.

I am super perplexed; besides this nix-on-droid seems superb and I hope I can keep up on client contracts as I travel, leaving my main computer back at home in the lab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions