Skip to content

tutorial 5: error running example #431

@lebensterben

Description

@lebensterben

In tutorial 5, when running the example code

nix flake show "github:nix-community/nixpkgs-wayland"

It gives the following error:

github:nix-community/nixpkgs-wayland/15c8cd0d5f737eb4b7bea99ede519f653cd13b94?narHash=sha256-aCoKnf90qe24Hqu00ASX73dJWyiQv7I89detce8Wc7A%3D
├───bundle: unknown
├───devShells
│   ├───aarch64-linux
│   │   └───default omitted (use '--all-systems' to show)
│   ├───riscv64-linux
│   │   └───default omitted (use '--all-systems' to show)
│   └───x86_64-linux
│       └───default: development environment 'nix-shell'
├───formatter
│   ├───aarch64-linux omitted (use '--all-systems' to show)
│   ├───riscv64-linux omitted (use '--all-systems' to show)
│   └───x86_64-linux: package 'nixfmt-unstable-2025-04-04'
├───overlay: Nixpkgs overlay
├───overlays
│   └───default: Nixpkgs overlay
└───packages
    ├───aarch64-linux
    │   ├───aml omitted (use '--all-systems' to show)
    │   ├───cage omitted (use '--all-systems' to show)
    │   ├───default omitted (use '--all-systems' to show)
    │   ├───drm_info omitted (use '--all-systems' to show)
    │   ├───dunst omitted (use '--all-systems' to show)
    │   ├───eww omitted (use '--all-systems' to show)
    │   ├───foot omitted (use '--all-systems' to show)
    │   ├───freerdp3 omitted (use '--all-systems' to show)
    │   ├───gebaar-libinput omitted (use '--all-systems' to show)
    │   ├───glpaper omitted (use '--all-systems' to show)
    │   ├───grim omitted (use '--all-systems' to show)
    │   ├───gtk-layer-shell omitted (use '--all-systems' to show)
    │   ├───i3status-rust omitted (use '--all-systems' to show)
    │   ├───imv omitted (use '--all-systems' to show)
    │   ├───kanshi omitted (use '--all-systems' to show)
    │   ├───lavalauncher omitted (use '--all-systems' to show)
    │   ├───libvncserver_master omitted (use '--all-systems' to show)
    │   ├───mako omitted (use '--all-systems' to show)
    │   ├───neatvnc omitted (use '--all-systems' to show)
    │   ├───new-wayland-protocols omitted (use '--all-systems' to show)
    │   ├───obs-wlrobs omitted (use '--all-systems' to show)
    │   ├───rootbar omitted (use '--all-systems' to show)
    │   ├───salut omitted (use '--all-systems' to show)
    │   ├───shotman omitted (use '--all-systems' to show)
    │   ├───sirula omitted (use '--all-systems' to show)
    │   ├───slurp omitted (use '--all-systems' to show)
    │   ├───sway-unwrapped omitted (use '--all-systems' to show)
    │   ├───swaybg omitted (use '--all-systems' to show)
    │   ├───swayidle omitted (use '--all-systems' to show)
    │   ├───swaylock omitted (use '--all-systems' to show)
    │   ├───swaylock-effects omitted (use '--all-systems' to show)
    │   ├───swww omitted (use '--all-systems' to show)
    │   ├───waybar omitted (use '--all-systems' to show)
    │   ├───waypipe omitted (use '--all-systems' to show)
    │   ├───wayvnc omitted (use '--all-systems' to show)
    │   ├───wbg omitted (use '--all-systems' to show)
    │   ├───wdisplays omitted (use '--all-systems' to show)
    │   ├───wev omitted (use '--all-systems' to show)
    │   ├───wf-recorder omitted (use '--all-systems' to show)
    │   ├───wl-clipboard omitted (use '--all-systems' to show)
    │   ├───wl-gammarelay-rs omitted (use '--all-systems' to show)
    │   ├───wlay omitted (use '--all-systems' to show)
    │   ├───wldash omitted (use '--all-systems' to show)
    │   ├───wlogout omitted (use '--all-systems' to show)
    │   ├───wlr-randr omitted (use '--all-systems' to show)
    │   ├───wlroots omitted (use '--all-systems' to show)
    │   ├───wlsunset omitted (use '--all-systems' to show)
    │   ├───wlvncc omitted (use '--all-systems' to show)
    │   ├───wob omitted (use '--all-systems' to show)
    │   ├───wofi omitted (use '--all-systems' to show)
    │   ├───wshowkeys omitted (use '--all-systems' to show)
    │   ├───wtype omitted (use '--all-systems' to show)
    │   └───xdg-desktop-portal-wlr omitted (use '--all-systems' to show)
    ├───riscv64-linux
    │   ├───aml omitted (use '--all-systems' to show)
    │   ├───cage omitted (use '--all-systems' to show)
    │   ├───default omitted (use '--all-systems' to show)
    │   ├───drm_info omitted (use '--all-systems' to show)
    │   ├───dunst omitted (use '--all-systems' to show)
    │   ├───eww omitted (use '--all-systems' to show)
    │   ├───foot omitted (use '--all-systems' to show)
    │   ├───freerdp3 omitted (use '--all-systems' to show)
    │   ├───gebaar-libinput omitted (use '--all-systems' to show)
    │   ├───glpaper omitted (use '--all-systems' to show)
    │   ├───grim omitted (use '--all-systems' to show)
    │   ├───gtk-layer-shell omitted (use '--all-systems' to show)
    │   ├───i3status-rust omitted (use '--all-systems' to show)
    │   ├───imv omitted (use '--all-systems' to show)
    │   ├───kanshi omitted (use '--all-systems' to show)
    │   ├───lavalauncher omitted (use '--all-systems' to show)
    │   ├───libvncserver_master omitted (use '--all-systems' to show)
    │   ├───mako omitted (use '--all-systems' to show)
    │   ├───neatvnc omitted (use '--all-systems' to show)
    │   ├───new-wayland-protocols omitted (use '--all-systems' to show)
    │   ├───obs-wlrobs omitted (use '--all-systems' to show)
    │   ├───rootbar omitted (use '--all-systems' to show)
    │   ├───salut omitted (use '--all-systems' to show)
    │   ├───shotman omitted (use '--all-systems' to show)
    │   ├───sirula omitted (use '--all-systems' to show)
    │   ├───slurp omitted (use '--all-systems' to show)
    │   ├───sway-unwrapped omitted (use '--all-systems' to show)
    │   ├───swaybg omitted (use '--all-systems' to show)
    │   ├───swayidle omitted (use '--all-systems' to show)
    │   ├───swaylock omitted (use '--all-systems' to show)
    │   ├───swaylock-effects omitted (use '--all-systems' to show)
    │   ├───swww omitted (use '--all-systems' to show)
    │   ├───waybar omitted (use '--all-systems' to show)
    │   ├───waypipe omitted (use '--all-systems' to show)
    │   ├───wayvnc omitted (use '--all-systems' to show)
    │   ├───wbg omitted (use '--all-systems' to show)
    │   ├───wdisplays omitted (use '--all-systems' to show)
    │   ├───wev omitted (use '--all-systems' to show)
    │   ├───wf-recorder omitted (use '--all-systems' to show)
    │   ├───wl-clipboard omitted (use '--all-systems' to show)
    │   ├───wl-gammarelay-rs omitted (use '--all-systems' to show)
    │   ├───wlay omitted (use '--all-systems' to show)
    │   ├───wldash omitted (use '--all-systems' to show)
    │   ├───wlogout omitted (use '--all-systems' to show)
    │   ├───wlr-randr omitted (use '--all-systems' to show)
    │   ├───wlroots omitted (use '--all-systems' to show)
    │   ├───wlsunset omitted (use '--all-systems' to show)
    │   ├───wlvncc omitted (use '--all-systems' to show)
    │   ├───wob omitted (use '--all-systems' to show)
    │   ├───wofi omitted (use '--all-systems' to show)
    │   ├───wshowkeys omitted (use '--all-systems' to show)
    │   ├───wtype omitted (use '--all-systems' to show)
    │   └───xdg-desktop-portal-wlr omitted (use '--all-systems' to show)
    └───x86_64-linux
        ├───aml: package 'aml-+f6086bc'
error:
       … while calling a functor (an attribute set with a '__functor' attribute)
         at «github:nix-community/nixpkgs-wayland/15c8cd0d5f737eb4b7bea99ede519f653cd13b94»/templates/template.nix:27:5:
           26|   overridenAttr =
           27|     (lib.attrByPath (lib.splitString "." nixpkgsAttr)
             |     ^
           28|       (throw "attr ${attrName} does not exist in nixpkgs")

       … while calling a functor (an attribute set with a '__functor' attribute)
         at «github:nixos/nixpkgs/8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7?narHash=sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo%3D»/lib/customisation.nix:169:45:
          168|         # Re-call the function but with different arguments
          169|         overrideArgs = mirrorArgs (newArgs: makeOverridable f (overrideWith newArgs));
             |                                             ^
          170|         # Change the result of the function call by applying g to it

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

       error: function 'anonymous lambda' called with unexpected argument 'wlroots'
       at «github:nixos/nixpkgs/8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7?narHash=sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo%3D»/pkgs/by-name/ca/cage/package.nix:1:1:
            1| {
             | ^
            2|   lib,

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