Skip to content

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Oct 26, 2020
1 parent 56cd83a commit 707a789
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions nix/haskell.nix
Expand Up @@ -54,32 +54,7 @@ let
(lib.optionalAttrs profiling {
enableLibraryProfiling = true;
})
# Musl libc fully static build
(lib.optionalAttrs stdenv.hostPlatform.isMusl (let
# Module options which adds GHC flags and libraries for a fully static build
fullyStaticOptions = {
enableShared = false;
enableStatic = true;
};
in
{
packages = lib.genAttrs projectPackages (name: fullyStaticOptions);

# Haddock not working and not needed for cross builds
doHaddock = false;
}
))

({ pkgs, ... }: lib.mkIf (pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform) {
# Remove hsc2hs build-tool dependencies (suitable version will be available as part of the ghc derivation)
packages.Win32.components.library.build-tools = lib.mkForce [];
packages.terminal-size.components.library.build-tools = lib.mkForce [];
packages.network.components.library.build-tools = lib.mkForce [];
})
];
# TODO add flags to packages (like cs-ledger) so we can turn off tests that will
# not build for windows on a per package bases (rather than using --disable-tests).
# configureArgs = lib.optionalString stdenv.hostPlatform.isWindows "--disable-tests";
});
in
pkgSet

0 comments on commit 707a789

Please sign in to comment.