diff options
author | Gabriel Gonzalez <gabriel@awakenetworks.com> | 2017-02-26 13:21:35 -0800 |
---|---|---|
committer | Gabriel Gonzalez <gabriel@awakenetworks.com> | 2017-02-26 13:21:35 -0800 |
commit | 8beee1ec2d4103452025efca43e4eb84688786bb (patch) | |
tree | 670165db0d693a1b441bceab7190e4f68eb07c97 /pkgs/development/haskell-modules/configuration-common.nix | |
parent | 392331ad58a6b5f9164ca59e3e70f3c56d476e16 (diff) | |
download | nixpkgs-8beee1ec2d4103452025efca43e4eb84688786bb.tar nixpkgs-8beee1ec2d4103452025efca43e4eb84688786bb.tar.gz nixpkgs-8beee1ec2d4103452025efca43e4eb84688786bb.tar.bz2 nixpkgs-8beee1ec2d4103452025efca43e4eb84688786bb.tar.lz nixpkgs-8beee1ec2d4103452025efca43e4eb84688786bb.tar.xz nixpkgs-8beee1ec2d4103452025efca43e4eb84688786bb.tar.zst nixpkgs-8beee1ec2d4103452025efca43e4eb84688786bb.zip |
Fix `pkgs.haskellPackages.gtk` build
Haskell's `gtk` package requires the `have-quartz-gtk` flag to be built on OS X when using the Quartz backend
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index d9bdf46c0b6..fc0edb9e6f3 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -689,6 +689,10 @@ self: super: { # Tools that use gtk2hs-buildtools now depend on them in a custom-setup stanza cairo = addBuildTool super.cairo self.gtk2hs-buildtools; pango = disableHardening (addBuildTool super.pango self.gtk2hs-buildtools) ["fortify"]; + gtk = + if pkgs.stdenv.isDarwin + then appendConfigureFlag super.gtk "-fhave-quartz-gtk" + else super.gtk; # https://github.com/commercialhaskell/stack/issues/3001 stack = doJailbreak super.stack; |