nix-community / nixpkgs-wayland

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

Failed to build missing attribute vala_0_42 #163

Closed danielstaleiny closed 5 years ago

danielstaleiny commented 5 years ago

Hi, Thank you very much for this project.

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

Here is console output.

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 tried both nixos-unstable tarball and pinned by your repository but running into the same issue.

Can you please check the config and see if there is anything fishy ? ( I am just starting with nixos and sway)

{ 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 !!   

  # system.stateVersion = "19.09"; # Did you read the comment?

}

What I found out from the trace is that it fails on activationScript.script which is part of nixos core but because it is related to trying to run this project I felt that I would get correct answer easier here than elsewhere.

Here is full output of --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

Do you have any idea how I could fix this issue ? @colemickens

danielstaleiny commented 5 years ago

instead of adding unstable git tarbal use nixos-channel to add and replace -> nixos-channel update -> rebuild system -> it should work.