@@ -120,13 +120,24 @@ Please note that `cabal2nix` may not always be able to generate a complete nix
120expression on `macOS`. See [this
120expression on `macOS`. See [this
121issue](https://github.com/NixOS/cabal2nix/issues/470).
121issue](https://github.com/NixOS/cabal2nix/issues/470).
123−You may need to add ``nixpkgs.darwin.apple_sdk.frameworks.Cocoa`` to
123+You may need to add ``nixpkgs.darwin.apple_sdk.frameworks.Cocoa``
124−your ``buildInputs`` or ``executableFrameworkDepends``. Something like
124+to ``librarySystemDepends``. For example, to create a streamly-0.9.0
125−this:
125+derivation from Hackage:
128−executableFrameworkDepends =
128+ streamly =
129+ nixpkgs.haskell.lib.overrideCabal
131+ super.callHackageDirect
134+ sha256 = "sha256-eOxVb8qQjZDo1+S7CStqYSExOg2QHWkMY+zlOYqwZak=";
138+ { librarySystemDepends =
129− if builtins.currentSystem == "x86_64-darwin"
139+ if nixpkgs.lib.strings.hasInfix "darwin" builtins.currentSystem
130− then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
140+ then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
131− else [];
141+ else [];