nix-community / emacs-overlay

Bleeding edge emacs overlay [maintainer=@adisbladis]
505 stars 166 forks source link

emacsPgtkGcc fails to configure on NixOS with home-manager: No package 'gtk+-3.0' found #250

Closed ulysses4ever closed 2 years ago

ulysses4ever commented 2 years ago

My full config is here: https://github.com/ulysses4ever/dotfiles

But the gist of it is that I have

programs.emacs.enable = true;
programs.emacs.package = pkgs.emacsPgtkGcc;

in my home-manager config, and it stopped building from yesterday's NixOS Unstable (built okay from it about a month ago) with:

❯ sudo nixos-rebuild switch --flake . --use-remote-sudo
warning: Git tree '/home/artem/dotfiles' is dirty
building the system configuration...
warning: Git tree '/home/artem/dotfiles' is dirty
error: builder for '/nix/store/6kmhimh9981wra14mlpwm2wql6ajbxw4-emacs-pgtkgcc-20211116.0.drv' failed with exit code 1;
       last 10 log lines:
       > checking for futimesat... yes
       > checking for lutimes... yes
       > checking for working mmap... yes
       > checking for main in -lXbsd... no
       > checking for pthread library... none needed
       > checking for thread support... yes
       > checking for librsvg-2.0 >= 2.14.0... yes
       > checking for getaddrinfo_a in -lanl... yes
       > checking for gtk+-3.0 >= 3.10 glib-2.0 >= 2.37.5... no
       > configure: error: No package 'gtk+-3.0' found
ulysses4ever commented 2 years ago

My bad: I missed that I had emacs-overlay pinned to an older commit.