Skip to content

Commit

Permalink
FromCabal.Name: add missing (versioned) webkitgtk pkg-config names
Browse files Browse the repository at this point in the history
When we don't know the exact version from the cabal file, we still emit
the generic name that has recently been removed from nixpkgs safe for an
alias (NixOS/nixpkgs#345611) which we can't use
in hackage-packages.nix. This is still the best solution for downstream
expressions generated by cabal2nix, in nixpkgs we'll have to manually
specify the correct version (instead of hackage2nix picking the default
which may not always be correct).

Co-authored-by: sternenseemann <[email protected]>
  • Loading branch information
fabianhjr and sternenseemann committed Oct 17, 2024
1 parent a64d722 commit bb478d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ libNixName "ImageMagick" = return "imagemagick"
libNixName "Imlib2" = return "imlib2"
libNixName "iw" = return "wirelesstools"
libNixName "jack" = return "libjack2"
libNixName "javascriptcoregtk" = return "webkitgtk"
libNixName "javascriptcoregtk-4.0" = return "webkitgtk_4_0"
libNixName "javascriptcoregtk-4.1" = return "webkitgtk_4_1"
libNixName "javascriptcoregtk-6.0" = return "webkitgtk_6_0"
libNixName "jpeg" = return "libjpeg"
libNixName "jvm" = return "jdk"
libNixName "lapack" = return "liblapack"
Expand Down Expand Up @@ -185,10 +188,14 @@ libNixName "wayland-client" = return "wayland"
libNixName "wayland-cursor" = return "wayland"
libNixName "wayland-egl" = return "libGL"
libNixName "wayland-server" = return "wayland"
libNixName "webkit" = return "webkitgtk_4_0"
libNixName "webkit2gtk" = return "webkitgtk_4_0"
libNixName "webkit" = return "webkitgtk" -- this is an alias, so it only works for downstream expressions not in hackage-packages.nix
libNixName "webkit2gtk" = return "webkitgtk"
libNixName "webkit2gtk-4.0" = return "webkitgtk_4_0"
libNixName "webkit2gtk-4.1" = return "webkitgtk_4_1"
libNixName "webkit2gtk-6.0" = return "webkitgtk_6_0"
libNixName "webkit2gtk-web-extension-4.0" = return "webkitgtk_4_0"
libNixName "webkit2gtk-web-extension-4.1" = return "webkitgtk_4_1"
libNixName "webkit2gtk-web-extension-6.0" = return "webkitgtk_6_0"
libNixName "wxGTK" = return "wxGTK32"
libNixName "X11" = return "libX11"
libNixName "x11" = return "libX11"
Expand Down

0 comments on commit bb478d3

Please sign in to comment.