Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build missing attribute vala_0_42 (sway) #71330

Closed
danielstaleiny opened this issue Oct 18, 2019 · 5 comments
Closed

Failed to build missing attribute vala_0_42 (sway) #71330

danielstaleiny opened this issue Oct 18, 2019 · 5 comments
Labels
0.kind: bug Something is broken

Comments

@danielstaleiny
Copy link
Contributor

I wasn't sure if the issue is here or in nixpkgs-wayland so I am asking in both https://github.com/colemickens/nixpkgs-wayland/issues/163

My current system

  • system: "x86_64-linux"
  • channel for nixos -> unstable
  • channel for nix-env -> default

I am running into issue with missing attribute vala_0_42 under gnome-3/default.nix file.

Here is console output. nixos-rebuild test

building Nix...
building the system configuration...
error: attribute 'vala_0_42' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/desktops/gnome-3/default.nix:57:10

I am running nixos-unstable
Here is my current initial config. I tried to comment almost everything and try to see at what point it would build but without success. Could you see something fishy in my config ?

{ config, lib, pkgs, ... }:
let 
  #unstableTarball = import ./unstable/default.nix;
  unstableTarball = fetchTarball "https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz";
  url = "https://github.com/colemickens/nixpkgs-wayland/archive/master.tar.gz";
  waylandOverlay = (import (fetchTarball url));
in
{
  imports =
    [ 
      ./hardware-configuration.nix
    ];


nixpkgs.config = {
 allowUnsupportedSystem = true;
 packageOverrides = pkgs: {
  pkgs = import unstableTarball {
    config = config.nixpkgs.config;
    };
  };
};


nixpkgs.overlays = [ waylandOverlay];
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

   networking.hostName = "box"; # Define your hostname.
  # networking.networkmanager.enable = true; 

  # Select internationalisation properties.
   i18n = {
     consoleFont = "latarcyrheb-sun32x20";
     consoleKeyMap = "us";
     defaultLocale = "en_US.UTF-8";
   };

   time.timeZone = "Europe/Copenhagen";
    
   programs.sway.enable = true;
   programs.sway.extraSessionCommands = ''
   # Tell toolkits to use wayland
   export CLUTTER_BACKEND=wayland
   #export QT_QPA_PLATFORM=wayland-egl
   export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
   export SQL_VIDEODRIVER=wayland
   # Fix kirta and other egl using apps
   export LD_LIBRARY_PATH=/run/opengl-driver/lib
  
  # Disable HiDPI scaling for X apps
   export GDK_SCALE=1
   export QT_AUTO_SCREEN_SCALE_FACTOR=0
  '';

   programs.sway.extraPackages = with pkgs; [
	xwayland
	swaybg
	swayidle
	swaylock
	waybar	
#	i3status-rust
	gebaar-libinput
	grim
	kanshi
	mako
	oguri
	redshift-wayland
	slurp
	wf-config
	wf-recorder
	wl-clipboard
	wtype
];

   environment.systemPackages = with pkgs; [
	wget 
	vim 
	firefox 
	waybox
	cage
	wayfire
   ];

  # Enable sound.
   sound.enable = true;
   hardware.pulseaudio.enable = true;

   services.xserver.enable = false;
   services.xserver.layout = "dvorak,us,sk";
   services.xserver.xkbVariant = ",,qwerty";
   services.xserver.xkbOptions = "eurosign:e, caps:escape";


  # Define a user account. Don't forget to set a password with ‘passwd’.
   users.users.anon = {
     isNormalUser = true;
     extraGroups = [ 
	"wheel"
	"networkmanager"
	"input"
	"tty"
	"audio"	
	"video"
	"sway"
	 ]; # Enable ‘sudo’ for the user.
   };
   security.sudo.configFile = ''
Defaults rootpw
'';


  # Running unstable packages anyway 
  # Do I need this ? 
  # system.stateVersion = "19.09"; 

}

What I found out from the trace is that it fails on activationScript.script

Here is full output of nixos-rebuild test --show-trace

building Nix...
building the system configuration...
error: while evaluating the attribute 'activationScript' of the derivation 'nixos-system-box-19.03.173553.6420e2649fa' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:102:5:
while evaluating the attribute 'system.activationScripts.script' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:68:9:
while evaluating 'textClosureMap' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings-with-deps.nix:70:35, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:89:18:
while evaluating 'id' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:14:5, called from undefined position:
while evaluating the attribute 'text' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:9:5:
while evaluating the attribute 'text' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings-with-deps.nix:77:38:
while evaluating the attribute 'sources' of the derivation 'etc' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:12:5:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:20:20, called from undefined position:
while evaluating the attribute 'source' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `environment.etc.profile.source':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'condition' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:502:14:
while evaluating the attribute 'text' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `environment.etc.profile.text':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:234:44:
while evaluating the attribute 'shellInit' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `programs.bash.shellInit':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:234:44:
while evaluating the attribute 'text' of the derivation 'set-environment' at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:234:10, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/config/shells-environment.nix:26:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:234:16:
while evaluating the attribute 'GIO_EXTRA_MODULES' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:344:7:
while evaluating 'toList' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:270:12, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/config/shells-environment.nix:46:28, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:283:22, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:378:27:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:370:32, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:370:19:
while evaluating 'merge' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:427:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:373:8:
while evaluating 'merge' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:256:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:434:21:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:257:35, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:103:29, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:259:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:103:32:
while evaluating the attribute 'optionalValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:377:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:263:40:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'dconf-0.30.1' at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/desktops/gnome-3/core/dconf/default.nix:8:3:
while evaluating 'getOutput' at /nix/store/lwr2bd3xjq9pl539b2wvjbhmqybnj5qa-source/lib/attrsets.nix:464:23, called from undefined position:
while evaluating anonymous function at /nix/store/lwr2bd3xjq9pl539b2wvjbhmqybnj5qa-source/pkgs/stdenv/generic/make-derivation.nix:133:17, called from undefined position:
attribute 'vala_0_42' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/desktops/gnome-3/default.nix:57:10

@danielstaleiny danielstaleiny added the 0.kind: bug Something is broken label Oct 18, 2019
@jtojnar
Copy link
Member

jtojnar commented Oct 18, 2019

I believe this was fixed, update your default channel.

Not sure the packageOverrides for pkgs is correct.

@danielstaleiny
Copy link
Contributor Author

@jtojnar is this the latest unstable-channel ? https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz

@danielstaleiny
Copy link
Contributor Author

danielstaleiny commented Oct 18, 2019

Do I need to run nix-channel --add https://nixos.org/channels/nixos-unstable nixos to change the channel ? can I do it in the configuration.nix ? I would like to do as much as possible there.

I can see that my nix-channel version is still 19.03 but I haven't added unstable with console yet.

@jtojnar
Copy link
Member

jtojnar commented Oct 18, 2019

See #62832 (comment)

@danielstaleiny
Copy link
Contributor Author

replacing and updating nixos-channel to unstable and rebuilding the system fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants