nixpkgs/pkgs/top-level
Sebastián Mancilla bf0cd1ce16 libcanberra/libcanberra-gtk2: fix build on darwin
All libcanberra/libcanberra-gtk2/libcanberra-gtk3 packages were marked
as broken on commit 806d814516 (libcanberra: mark broken on darwin,
2021-02-11), but only libcanberra-gtk3 is broken due to the missing
header.

This commit refactors how to enable GTK support, to mark just
libcanberra-gtk3 as broken and allow building libcanberra and
libcanberra-gtk2.

libcanberra builds but the linker fails with:

    ld: file not found: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon for architecture x86_64
    clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

Adding Carbon to the inputs solves the problem.

libcanberra-gtk2 builds and the linker finishes without the above error,
most likely because it depends on gtk2 and gtk2 depends on Cocoa.

Also fix some issues with the derivation:

- Use pname/version instead of name.
- Use lib.optionalString to set postPatch.
- Only set passthru if building with GTK support, and ensure that the
  proper directory is passed for each GTK version.
2021-07-31 19:35:48 -04:00
..
agda-packages.nix
aliases.nix rpiboot-unstable -> rpiboot 2021-07-30 17:16:17 -07:00
all-packages.nix libcanberra/libcanberra-gtk2: fix build on darwin 2021-07-31 19:35:48 -04:00
beam-packages.nix
config.nix
coq-packages.nix coqPackages.graph-theory: init at 0.9 2021-07-29 09:33:21 +02:00
darwin-packages.nix
default.nix
dhall-packages.nix
dotnet-packages.nix dotnetPackages.Nuget: 4.9.1 -> 5.6.0.6489 2021-07-21 23:22:42 +02:00
emacs-packages.nix emacsPackages.nongnuPackages: init 2021-07-21 15:11:27 -05:00
emscripten-packages.nix
gnuradio-packages.nix
haskell-packages.nix Revert "pkgsMusl.haskell.compiler.*: use python38 to unbreak build" 2021-07-26 12:33:18 +02:00
haxe-packages.nix
impure.nix
java-packages.nix
kodi-packages.nix
lua-packages.nix
make-tarball.nix Update pkgs/top-level/make-tarball.nix 2021-07-08 13:03:57 +02:00
metrics.nix
nixpkgs-basic-release-checks.nix GHA: add basic eval checks 2021-07-07 14:26:59 +02:00
ocaml-packages.nix ocamlPackages.odoc-parser: init at 0.9.0 2021-07-29 05:00:19 +02:00
octave-packages.nix
packages-config.nix
perl-packages.nix Merge pull request #130833 from stigtsp/package/convos-6.26 2021-07-29 14:56:44 +02:00
php-packages.nix
pure-packages.nix
python-aliases.nix Merge master into staging-next 2021-07-28 12:01:16 +00:00
python-packages.nix Merge pull request #131896 from fabaff/brotlicffi 2021-07-31 13:57:34 +07:00
python2-packages.nix Merge pull request #131719 from FRidh/python2-to-3 2021-07-29 10:49:00 +02:00
qt5-packages.nix kimageannotator: init at 0.5.1 2021-07-12 12:45:40 +02:00
release-alternatives.nix
release-cross.nix
release-haskell.nix release-haskell: fix comment on pkgsMusl.haskellPackages 2021-07-24 21:13:42 +09:00
release-lib.nix
release-python.nix
release-small.nix
release.nix
ruby-packages.nix rubyPackages: update 2021-07-24 04:20:00 +00:00
splice.nix
stage.nix
static.nix
unixtools.nix
wine-packages.nix