Skip to content

Commit fd490f4

Browse files
committed
Cleanup
1 parent 7686322 commit fd490f4

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

overlays/hackage-quirks.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ in { haskell-nix = prev.haskell-nix // {
4444
sha256 = "0jcpja4s4cylmg9rddyakb1p1fb4l41ffwmy0njpb1dxc5z3v618";
4545
};
4646
})
47-
# Musl needs static zlib
48-
(lib.optionalAttrs final.stdenv.hostPlatform.isMusl {
49-
packages.pandoc.components.exes.pandoc.configureFlags = [
50-
"--ghc-option=-optl=-L${final.zlib.static}/lib"
51-
];
52-
})
5347
];
5448
};
5549

test/fully-static/default.nix

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,11 @@ let
1717
src = testSrc "fully-static";
1818
pkg-def-extras = [];
1919
modules = [
20-
# Musl libc fully static build
21-
(let
22-
staticLibs = [
23-
zlib.static
24-
(openssl.override { static = true; }).out
25-
(libffi.overrideAttrs (oldAttrs: {
26-
dontDisableStatic = true;
27-
configureFlags = (oldAttrs.configureFlags or []) ++ [
28-
"--enable-static"
29-
"--disable-shared"
30-
];
31-
}))
32-
] ++ optional gpl (gmp6.override { withStatic = true; });
33-
34-
withFullyStatic = {
35-
configureFlags =
36-
optionals stdenv.hostPlatform.isMusl (map (drv: "--ghc-option=-optl=-L${drv}/lib") staticLibs);
37-
};
38-
in {
20+
{
3921
# Select a non-GMP compiler, usually for software licensing reasons.
4022
ghc.package = mkIf (stdenv.hostPlatform.isMusl && !gpl)
4123
buildPackages.haskell-nix.compiler.integer-simple.${compiler};
42-
43-
# Add GHC flags and libraries for fully static build
44-
# packages.pandoc.components.exes.pandoc = withFullyStatic;
45-
})
24+
}
4625
];
4726
};
4827
packagesGmp = (project { gpl = true; }).hsPkgs;

0 commit comments

Comments
 (0)