Skip to content

Error to install typst with nix shell on Mac OS #10

@tommens

Description

@tommens

Hello, when trying to run "nix shell github:typst/typst-flake" on my MacBook Pro (M2 Pro, MacOS 14.8.4) I get the following unexpected error:

nix shell github:typst/typst-flake
error:
… while calling the 'derivationStrict' builtin
at «nix-internal»/derivation-internal.nix:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|

   … while evaluating derivation 'typst-0.14.2'
     whose name attribute is located at «github:nixos/nixpkgs/fb7944c166a3b630f177938e478f0378e64ce108?narHash=sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf%2BOkucw%3D»/pkgs/stdenv/generic/make-derivation.nix:541:13

   … while evaluating attribute 'RUSTFLAGS' of derivation 'typst-0.14.2'

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: The `env` attribute set can only contain derivation, string, boolean or integer attributes. The `RUSTFLAGS` attribute is of type null.

➜ ~ nix shell github:typst/typst-flake
error:
… while calling the 'derivationStrict' builtin
at «nix-internal»/derivation-internal.nix:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|

   … while evaluating derivation 'typst-0.14.2'
     whose name attribute is located at «github:nixos/nixpkgs/fb7944c166a3b630f177938e478f0378e64ce108?narHash=sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf%2BOkucw%3D»/pkgs/stdenv/generic/make-derivation.nix:541:13

   … while evaluating attribute 'RUSTFLAGS' of derivation 'typst-0.14.2'

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: The `env` attribute set can only contain derivation, string, boolean or integer attributes. The `RUSTFLAGS` attribute is of type null.

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