nix-community / nixpkgs-wayland

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

Waybar is trying to execute an .exe file #409

Closed SrEstegosaurio closed 1 year ago

SrEstegosaurio commented 1 year ago

Today I've updated my flake inputs and proceded to do a system rebuild. It failed due to a Waybar sanity check. The following error message resulted:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/1qiwwmznkfyr7s3xp23aq0cx429gfpg5-source
source root is source
patching script interpreter paths in .
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
meson flags: --buildtype=plain         --libdir=/nix/store/w51vzmgpjn43z7vfh08gkysgrbl5gmkw-waybar-+d367b7e/lib --libexecdir=/nix/store/w51vzmgpjn43z7vfh08gkysgrbl5gmkw-waybar-+d367b7e/libexec         --bindir=/nix/store/w51vzmgp
The Meson build system
Version: 1.1.0
Source dir: /build/source
Build dir: /build/source/build
Build type: native build
Project name: waybar
Project version: 0.9.18

meson.build:1:0: ERROR: Could not invoke sanity test executable: [Errno 13] Permission denied: '/build/source/build/meson-private/sanitycheckc.exe'.

A full log can be found at /build/source/build/meson-logs/meson-log.txt

As I don't have much experience I don't know if I would need to provide anything else but I'll be pleased to help as much as possible.

Thanks for your attention & work.

Artturin commented 1 year ago

Can't repro on b6964d30d02be53a9a6d0c1d3b6bbd76ae5a1d6d

Please post the Inputs section of

nix flake metadata

and check your config thoroughly

SrEstegosaurio commented 1 year ago

Please post the Inputs section of nix flake metadata

I assume you mean the metadata of my config flake, so:

Resolved URL:  git+file:///home/srestegosaurio/dotfiles
Locked URL:    git+file:///home/srestegosaurio/dotfiles
Description:   Sr. Estegosaurio's configs.
Path:          /nix/store/2ch4y31qkhjjhqih1q2f797zpigpssls-source
Last modified: 2023-06-17 13:38:28
Inputs:
├───alejandra: github:kamadorueda/alejandra/ef03f7ef74ec97fd91a016a51c9c9667fb315652
│   ├───fenix: github:nix-community/fenix/b814c83d9e6aa5a28d0cf356ecfdafb2505ad37d
│   │   ├───nixpkgs follows input 'alejandra/nixpkgs'
│   │   └───rust-analyzer-src: github:rust-lang/rust-analyzer/caf23f29144b371035b864a1017dbc32573ad56d
│   ├───flakeCompat: github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8
│   └───nixpkgs follows input 'nixpkgs'
├───emacs-overlay: github:nix-community/emacs-overlay/a4c1f4b163c9ba956a6d09476a2fcb1feb9057ea
│   ├───flake-utils: github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef
│   │   └───systems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e
│   ├───nixpkgs follows input 'nixpkgs'
│   └───nixpkgs-stable: github:NixOS/nixpkgs/c7ff1b9b95620ce8728c0d7bd501c458e6da9e04
├───home-manager: github:nix-community/home-manager/0480dabc99e1b669ebe909949180fa2786e733cd
│   └───nixpkgs follows input 'nixpkgs'
├───hyprland: github:hyprwm/Hyprland/74ca81cc7942aa93e796ca794185675bae57003d
│   ├───hyprland-protocols: github:hyprwm/hyprland-protocols/8c279b9fb0f2b031427dc5ef4eab53f2ed835530
│   │   └───nixpkgs follows input 'hyprland/nixpkgs'
│   ├───nixpkgs: github:NixOS/nixpkgs/0eeebd64de89e4163f4d3cf34ffe925a5cf67a05
│   ├───wlroots: gitlab:wlroots/wlroots/7e7633abf09b362d0bad9e3fc650fd692369291d
│   └───xdph: github:hyprwm/xdg-desktop-portal-hyprland/4d9ff0c17716936e0b5ca577a39e263633901ed1
│       ├───hyprland-protocols follows input 'hyprland/hyprland-protocols'
│       └───nixpkgs follows input 'hyprland/nixpkgs'
├───impermanence: github:nix-community/impermanence/89253fb1518063556edd5e54509c30ac3089d5e6
├───nix-colors: github:misterio77/nix-colors/b92df8f5eb1fa20d8e09810c03c9dc0d94ef2820
│   ├───base16-schemes: github:tinted-theming/base16-schemes/dc048afa066287a719ddbab62b3e19e4b5110cf0
│   └───nixpkgs-lib: github:nix-community/nixpkgs.lib/b18d328214ca3c627d3cc3f51fd9d1397fdbcd7a
├───nixos-hardware: github:NixOS/nixos-hardware/429f232fe1dc398c5afea19a51aad6931ee0fb89
├───nixpkgs: github:NixOS/nixpkgs/04af42f3b31dba0ef742d254456dc4c14eedac86
├───nixpkgs-wayland: github:nix-community/nixpkgs-wayland/b6964d30d02be53a9a6d0c1d3b6bbd76ae5a1d6d
│   ├───flake-compat: github:nix-community/flake-compat/95e78dc12268c5e4878621845c511077f3798729
│   ├───lib-aggregate: github:nix-community/lib-aggregate/3ed1afb7a79ab6d2f105f72e5404e7a419004220
│   │   ├───flake-utils: github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef
│   │   │   └───systems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e
│   │   └───nixpkgs-lib: github:nix-community/nixpkgs.lib/908af6d1fa3643c5818ea45aa92b21d6385fbbe5
│   ├───nix-eval-jobs: github:nix-community/nix-eval-jobs/8fca52c06fa2131422811bc6e1e441220cfb97d5
│   │   ├───flake-parts: github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3
│   │   │   └───nixpkgs-lib follows input 'nixpkgs-wayland/nix-eval-jobs/nixpkgs'
│   │   └───nixpkgs: github:NixOS/nixpkgs/66e3d3b8d9cf3ebf0d2326b8267f71fe38e7f1b8
│   └───nixpkgs: github:nixos/nixpkgs/04af42f3b31dba0ef742d254456dc4c14eedac86
├───pre-commit-hooks: github:cachix/pre-commit-hooks.nix/5b6b54d3f722aa95cbf4ddbe35390a0af8c0015a
│   ├───flake-compat: github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9
│   ├───flake-utils: github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef
│   │   └───systems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e
│   ├───gitignore: github:hercules-ci/gitignore.nix/a20de23b925fd8264fd7fad6454652e142fd7f73
│   │   └───nixpkgs follows input 'pre-commit-hooks/nixpkgs'
│   ├───nixpkgs follows input 'nixpkgs'
│   └───nixpkgs-stable: github:NixOS/nixpkgs/c37ca420157f4abc31e26f436c1145f8951ff373
└───sops-nix: github:Mic92/sops-nix/1634d2da53f079e7f5924efa7a96511cd9596f81
    ├───nixpkgs: github:NixOS/nixpkgs/7cc30fd5372ddafb3373c318507d9932bd74aafe
    └───nixpkgs-stable: github:NixOS/nixpkgs/e2e2059d19668dab1744301b8b0e821e3aae9c99

And here's my Waybar config: https://privatebin.net/?3df53f3583c3e19d#45d1AP3AS6KrYYj1JkYvQksfnUU44FVaUfDiKfa8aH4w Password: 1234

SrEstegosaurio commented 1 year ago

Still present on d6748f32dd16d366923f7a0e3fc09b54ce729689.

Artturin commented 1 year ago

Can't repro, clone nixpkgs-wayland and nix build ".#waybar", if it doesn't repro then it's your config

SrEstegosaurio commented 1 year ago

The error was indeed in my configuration. Apparently my tmpfs was mounted with the noexec option and that was causing lot's of trouble.

Thanks for your help anyway. :)