flakestry / flakestry.dev

A public central registry of Nix flakes.
https://flakestry.dev
Apache License 2.0
93 stars 8 forks source link

Decoder error when showing nixus package #43

Open adamdicarlo0 opened 6 months ago

adamdicarlo0 commented 6 months ago

This package gives a decoder error: https://flakestry.dev/flake/github/infinisil/nixus/0.1.3

The Json.Decode.oneOf at json.packages failed in the following 2 ways:

(1) Problem with the value at json['aarch64-linux'].example:

        {}

    Expecting an OBJECT with a field named `type`

(2) Problem with the given value:

    {
            "x86_64-linux": {
                "example": {
                    "name": "deploy",
                    "type": "derivation"
                }
            },
            "aarch64-linux": {
                "example": {}
            },
            "x86_64-darwin": {
                "example": {}
            },
            "aarch64-darwin": {
                "example": {}
            }
        }

    Expecting null
m1-s commented 4 months ago

Tried to reproduce this by forking the repo and it published without problems: https://flakestry.dev/flake/github/m1-s/nixus/0.1.3

Can you provide some more details on how you got to this error?

adamdicarlo0 commented 4 months ago

The decoder error is on the linked webpage:

image