Skip to content

Dependency glib-networking missing in emacs29-pgtk package #249756

@ShivanshuKantPrasad

Description

@ShivanshuKantPrasad

Describe the bug

Trying to run xwidget-webkit-browse-url command in emacs29-pgtk package results in TLS/SSL support not available; install glib-networking error

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix run nixpkgs#emacs29-pgtk
  2. In emacs M-x xwidget-webkit-browse-url
  3. Enter https://www.example.com
  4. Webkit shows TLS/SSL support not available; install glib-networking error

Expected behavior

Webpage should open and be rendered

Screenshots

2023-08-17T20:47:05,138186047+05:30

Additional context

In emacs/generic.nix package derivation we have the following lines of code:

...
assert withPgtk -> withGTK3 && !withX;
...
] ++ lib.optionals (withX && withXwidgets) [
    glib-networking
] ++ ...

glib-networking is only enabled if withX is true but the assert ensures that either withPgtk is true or withX is true but not both. So, enabling withXwidgets and withPgtk results in withX being false and glib-networking not being added.

Notify maintainers

@AndersonTorres
@adisbladis
@Atemu
@jwiegley
@lovek323
@matthewbauer

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.43, NixOS, 23.11 (Tapir), 23.11.20230808.41c7605`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(root): `"nixos, nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions