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 erlang: main R23 -> R24 2021-05-31 08:55:21 +09:00
config.nix
coq-packages.nix coqPackages.graph-theory: init at 0.9 2021-07-29 09:33:21 +02:00
darwin-packages.nix darwin-packages: avoid exporting attributes that don't exist 2021-05-17 00:28:05 +09:00
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 kodi.packages.websocket: init at 0.58.0+matrix.2 2021-06-21 20:39:11 -04:00
lua-packages.nix Revert "lua51Packages.luxio: fix build" 2021-05-15 09:37:32 +02:00
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 phpPackages.dom: drop patch 2021-07-01 14:07:39 +02:00
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 hydra jobset support for aarch64-darwin 2021-05-17 00:27:02 +09:00
release-python.nix
release-small.nix tarball: check systems based on the list of supported systems 2021-05-31 16:12:17 +02:00
release.nix darwin: temporarily disable bootstrap stdenv test 2021-06-13 17:32:09 +02:00
ruby-packages.nix rubyPackages: update 2021-07-24 04:20:00 +00:00
splice.nix
stage.nix top-level: fix typo 2021-06-17 11:16:37 +02:00
static.nix stdenv: introduce dontAddStaticConfigureFlags 2021-06-11 14:16:05 -07:00
unixtools.nix
wine-packages.nix