File tree Expand file tree Collapse file tree 2 files changed +2
-29
lines changed Expand file tree Collapse file tree 2 files changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,6 @@ in { haskell-nix = prev.haskell-nix // {
44
44
sha256 = "0jcpja4s4cylmg9rddyakb1p1fb4l41ffwmy0njpb1dxc5z3v618" ;
45
45
} ;
46
46
} )
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
- } )
53
47
] ;
54
48
} ;
55
49
Original file line number Diff line number Diff line change 17
17
src = testSrc "fully-static" ;
18
18
pkg-def-extras = [ ] ;
19
19
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
+ {
39
21
# Select a non-GMP compiler, usually for software licensing reasons.
40
22
ghc . package = mkIf ( stdenv . hostPlatform . isMusl && ! gpl )
41
23
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
+ }
46
25
] ;
47
26
} ;
48
27
packagesGmp = ( project { gpl = true ; } ) . hsPkgs ;
You can’t perform that action at this time.
0 commit comments