nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
510 stars 45 forks source link

unexpected input 'wlroots' after `nix flake update` and `nixos-rebuild` #411

Closed DirectXMan12 closed 1 year ago

DirectXMan12 commented 1 year ago

Using this as a flake, went to update today and I get

error: anonymous function at /nix/store/mz6lqpbsp4h36kgahvwfrgdjzz042hpn-source/pkgs/applications/window-managers/sway/default.nix:1:1 called with unexpected argument 'wlroots'

       at /nix/store/mz6lqpbsp4h36kgahvwfrgdjzz042hpn-source/lib/customisation.nix:80:16:

           79|     let
           80|       result = f origArgs;
             |                ^
           81|
(use '--show-trace' to show detailed location information)

after running a nix flake update

flake.lock ```json { "nodes": { "flake-compat": { "flake": false, "locked": { "lastModified": 1673956053, "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", "owner": "edolstra", "repo": "flake-compat", "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", "type": "github" }, "original": { "owner": "edolstra", "repo": "flake-compat", "type": "github" } }, "flake-compat_2": { "locked": { "lastModified": 1680531544, "narHash": "sha256-8qbiDTYb1kGaDADRXTItpcMKQ1TeQVkuof6oEwHUvVA=", "owner": "nix-community", "repo": "flake-compat", "rev": "95e78dc12268c5e4878621845c511077f3798729", "type": "github" }, "original": { "owner": "nix-community", "repo": "flake-compat", "type": "github" } }, "flake-parts": { "inputs": { "nixpkgs-lib": [ "lanzaboote", "nixpkgs" ] }, "locked": { "lastModified": 1683560683, "narHash": "sha256-XAygPMN5Xnk/W2c1aW0jyEa6lfMDZWlQgiNtmHXytPc=", "owner": "hercules-ci", "repo": "flake-parts", "rev": "006c75898cf814ef9497252b022e91c946ba8e17", "type": "github" }, "original": { "owner": "hercules-ci", "repo": "flake-parts", "type": "github" } }, "flake-parts_2": { "inputs": { "nixpkgs-lib": [ "nixpkgs-wayland", "nix-eval-jobs", "nixpkgs" ] }, "locked": { "lastModified": 1685662779, "narHash": "sha256-cKDDciXGpMEjP1n6HlzKinN0H+oLmNpgeCTzYnsA2po=", "owner": "hercules-ci", "repo": "flake-parts", "rev": "71fb97f0d875fd4de4994dfb849f2c75e17eb6c3", "type": "github" }, "original": { "owner": "hercules-ci", "repo": "flake-parts", "type": "github" } }, "flake-utils": { "inputs": { "systems": "systems" }, "locked": { "lastModified": 1681202837, "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", "owner": "numtide", "repo": "flake-utils", "rev": "cfacdce06f30d2b68473a46042957675eebb3401", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "flake-utils_2": { "inputs": { "systems": "systems_2" }, "locked": { "lastModified": 1687709756, "narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=", "owner": "numtide", "repo": "flake-utils", "rev": "dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "gitignore": { "inputs": { "nixpkgs": [ "lanzaboote", "pre-commit-hooks-nix", "nixpkgs" ] }, "locked": { "lastModified": 1660459072, "narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", "owner": "hercules-ci", "repo": "gitignore.nix", "rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", "type": "github" }, "original": { "owner": "hercules-ci", "repo": "gitignore.nix", "type": "github" } }, "lanzaboote": { "inputs": { "flake-compat": "flake-compat", "flake-parts": "flake-parts", "flake-utils": "flake-utils", "nixpkgs": [ "nixpkgs" ], "pre-commit-hooks-nix": "pre-commit-hooks-nix" }, "locked": { "lastModified": 1687124707, "narHash": "sha256-BEC2y7zwDI/Saeupr9rijLvwb0OoqTD9vntlcyciyrM=", "owner": "nix-community", "repo": "lanzaboote", "rev": "c758cdad465e0c8174db57dc493f51a89f0e3372", "type": "github" }, "original": { "owner": "nix-community", "repo": "lanzaboote", "type": "github" } }, "lib-aggregate": { "inputs": { "flake-utils": "flake-utils_2", "nixpkgs-lib": "nixpkgs-lib" }, "locked": { "lastModified": 1687781445, "narHash": "sha256-F02HT/B7Mfv4ypdgkiVnLpX6tk56bZDMJpV7tIiQFz0=", "owner": "nix-community", "repo": "lib-aggregate", "rev": "3dcf917ef862cac326c17cc1e6407c6827509d60", "type": "github" }, "original": { "owner": "nix-community", "repo": "lib-aggregate", "type": "github" } }, "nix-eval-jobs": { "inputs": { "flake-parts": "flake-parts_2", "nixpkgs": "nixpkgs_2" }, "locked": { "lastModified": 1687744035, "narHash": "sha256-Tv3e/SBh32HWC/5jJCtfS4yFNBn2XzjKDVxRmfZgetM=", "owner": "nix-community", "repo": "nix-eval-jobs", "rev": "a74d3c57242f34a767d920b4b31820047c59ff92", "type": "github" }, "original": { "owner": "nix-community", "repo": "nix-eval-jobs", "type": "github" } }, "nixos-hardware": { "locked": { "lastModified": 1686838567, "narHash": "sha256-aqKCUD126dRlVSKV6vWuDCitfjFrZlkwNuvj5LtjRRU=", "owner": "NixOS", "repo": "nixos-hardware", "rev": "429f232fe1dc398c5afea19a51aad6931ee0fb89", "type": "github" }, "original": { "id": "nixos-hardware", "type": "indirect" } }, "nixpkgs": { "locked": { "lastModified": 1687829761, "narHash": "sha256-QRe1Y8SS3M4GeC58F/6ajz6V0ZLUVWX3ZAMgov2N3/g=", "owner": "NixOS", "repo": "nixpkgs", "rev": "9790f3242da2152d5aa1976e3e4b8b414f4dd206", "type": "github" }, "original": { "id": "nixpkgs", "ref": "nixos-23.05", "type": "indirect" } }, "nixpkgs-lib": { "locked": { "lastModified": 1687654967, "narHash": "sha256-ki8vItcjn8Z8n+QD9NEoCQbbbG7VzWy71hyOkFFwCkM=", "owner": "nix-community", "repo": "nixpkgs.lib", "rev": "b3ec8fb525fc0c8f08eff5ef93c684b4c6d0e777", "type": "github" }, "original": { "owner": "nix-community", "repo": "nixpkgs.lib", "type": "github" } }, "nixpkgs-stable": { "locked": { "lastModified": 1678872516, "narHash": "sha256-/E1YwtMtFAu2KUQKV/1+KFuReYPANM2Rzehk84VxVoc=", "owner": "NixOS", "repo": "nixpkgs", "rev": "9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixos-22.11", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-unstable": { "locked": { "lastModified": 1687898314, "narHash": "sha256-B4BHon3uMXQw8ZdbwxRK1BmxVOGBV4viipKpGaIlGwk=", "owner": "NixOS", "repo": "nixpkgs", "rev": "e18dc963075ed115afb3e312b64643bf8fd4b474", "type": "github" }, "original": { "id": "nixpkgs", "ref": "nixos-unstable", "type": "indirect" } }, "nixpkgs-wayland": { "inputs": { "flake-compat": "flake-compat_2", "lib-aggregate": "lib-aggregate", "nix-eval-jobs": "nix-eval-jobs", "nixpkgs": "nixpkgs_3" }, "locked": { "lastModified": 1687974005, "narHash": "sha256-iklePKU5SuVnqwsCAISvsFUmKbPbyYDI7YUAhFzjVkg=", "owner": "nix-community", "repo": "nixpkgs-wayland", "rev": "2ad5dde04bc33c1e350769c3f8369c194508c0d9", "type": "github" }, "original": { "owner": "nix-community", "repo": "nixpkgs-wayland", "type": "github" } }, "nixpkgs_2": { "locked": { "lastModified": 1687740418, "narHash": "sha256-hZ51wbEaMFEo5MAOR9o+h7LNVxMIOCYABT5OwFesfCU=", "owner": "NixOS", "repo": "nixpkgs", "rev": "4137dbc2737384c4cc9e2b5d3c4cfc6ba6e5f0cc", "type": "github" }, "original": { "owner": "NixOS", "ref": "master", "repo": "nixpkgs", "type": "github" } }, "nixpkgs_3": { "locked": { "lastModified": 1687898314, "narHash": "sha256-B4BHon3uMXQw8ZdbwxRK1BmxVOGBV4viipKpGaIlGwk=", "owner": "nixos", "repo": "nixpkgs", "rev": "e18dc963075ed115afb3e312b64643bf8fd4b474", "type": "github" }, "original": { "owner": "nixos", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } }, "pre-commit-hooks-nix": { "inputs": { "flake-compat": [ "lanzaboote", "flake-compat" ], "flake-utils": [ "lanzaboote", "flake-utils" ], "gitignore": "gitignore", "nixpkgs": [ "lanzaboote", "nixpkgs" ], "nixpkgs-stable": "nixpkgs-stable" }, "locked": { "lastModified": 1684842236, "narHash": "sha256-rYWsIXHvNhVQ15RQlBUv67W3YnM+Pd+DuXGMvCBq2IE=", "owner": "cachix", "repo": "pre-commit-hooks.nix", "rev": "61e567d6497bc9556f391faebe5e410e6623217f", "type": "github" }, "original": { "owner": "cachix", "repo": "pre-commit-hooks.nix", "type": "github" } }, "root": { "inputs": { "lanzaboote": "lanzaboote", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-wayland": "nixpkgs-wayland" } }, "systems": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } }, "systems_2": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } } }, "root": "root", "version": 7 } ```

i've got it enabled as an overlay

  inputs = {
    nixpkgs.url = "nixpkgs/nixos-23.05";
    nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
    lanzaboote = {
      url = "github:nix-community/lanzaboote";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";

    # only needed if you use as a package set:
    nixpkgs-wayland.inputs.nixpkgs.follows = "nixpkgs";
  };
  # ...
  modules = [
    # other stuff like nixos-hardware and basic system config (no mention of sway other than below)
    ./sway-and-friends.nix
    ({ config, lib, ...}: {
          nixpkgs.overlays = [ attrs.nixpkgs-wayland.overlay ];
    })
  ];

and then used via

sway-and-friends.nix ```nix { config, pkgs, ... }: { environment.systemPackages = with pkgs; [ # sway itself, and other bits sway wayland swaylock # lock... swayidle # ...and auto-lock slurp sway-contrib.grimshot # screenshots (wraps grim & slurp) wl-clipboard # on the tin waybar # status bar mako # notifications kanshi # hotplug monitors tofi # dmenu replacement for wayland that works nicely jq # required for named workspaces to work # terminal and other core pieces that are wayland dependent alacritty # terminal networkmanagerapplet # for the indicator # other windowing-related stuff xdg-utils # for xdg-open gnome3.adwaita-icon-theme # for cursors and such pavucontrol # needed to manage sound, waybar sound item ]; # screensharing support: # first pipewire... security.rtkit.enable = true; # reccomended by nixos pipewire page, auto-adjusts priorities and such services.pipewire = { enable = true; pulse.enable = true; alsa = { enable = true; support32Bit = true; }; }; # ...then the portal service for wlroots services.dbus.enable = true; xdg.portal = { enable = true; wlr = { enable = true; settings = { screencast = { chooser_cmd = "slurp -f %o -or"; chooser_type = "simple"; }; }; }; extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; }; # we also *miiiight* need to restart pipewire and such to ensure they get the right session variables according to the sway page on the nixos wiki, but lets see, but let's see programs.sway = { enable = true; wrapperFeatures.gtk = true; wrapperFeatures.base = true; }; # for waybar fonts.fonts = with pkgs; [ # for waybar font-awesome (nerdfonts.override { fonts = [ "DejaVuSansMono" ]; }) ]; } ```

this was working as of a couple weeks ago (last nix flake update i ran), so not sure what's changed in the meantime.

Artturin commented 1 year ago

i fixed a update failure but we need to wait for a another build failure to be fixed so we get a channel update for the arg to be renamed

https://nixpk.gs/pr-tracker.html?pr=240270

Artturin commented 1 year ago

fixed waybar build https://github.com/nix-community/nixpkgs-wayland/commit/30ddf7595b1e4f063e892ddd886596bc346c4f85 so there will be a update soon

Artturin commented 1 year ago

advance workflow ran successfully