Skip to content

Nix repl - fails to read /proc files #3026

@SRGOM

Description

@SRGOM

Please see very small shell session for understanding:

$nix repl                                                                                                                                                             Welcome to Nix version 2.1.3. Type :? for help.

nix-repl> builtins.readFile /etc/os-release
"NAME=NixOS\nID=nixos\nVERSION=\"18.09.2466.884b0a4417e (Jellyfish)\"\nVERSION_CODENAME=jellyfish\nVERSION_ID=\"18.09.2466.884b0a4417e\"\nPRETTY_NAME=\"NixOS 18.09.2466.884b0a4417e (Jellyfish)\"\nHOME_URL=\"https://nixos.org/\"\nSUPPORT_URL=\"https://nixos.org/nixos/support.html\"\nBUG_REPORT_URL=\"https://github.com/NixOS/nixpkgs/issues\"\n"

nix-repl> builtins.readFile /proc/cpuinfo
""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions