on iko/ghcjs-patch-master help sign in
Pass enableDWARF to makeConfigFiles to fix -g3 support in nix-shell (#1385)
864c0afHamish Mackenzie
builder/haddock-builder.nix+1
@@ -41,6 +41,7 @@ let
41 inherit (package) identifier;
41 inherit (package) identifier;
42 inherit component fullName flags needsProfiling;
42 inherit component fullName flags needsProfiling;
43 chooseDrv = p: p.haddock;
43 chooseDrv = p: p.haddock;
44+ inherit (componentDrv) enableDWARF;
44 };
45 };
45
46
46 finalConfigureFlags = lib.concatStringsSep " " (
47 finalConfigureFlags = lib.concatStringsSep " " (
builder/shell-for.nix+1−1
@@ -102,7 +102,7 @@ let
102 configFiles = makeConfigFiles {
102 configFiles = makeConfigFiles {
103 fullName = args.name or name;
103 fullName = args.name or name;
104 identifier.name = name;
104 identifier.name = name;
105− inherit component;
105+ inherit component enableDWARF;
106 chooseDrv = p: if withHaddock && p ? haddock then p.haddock else p;
106 chooseDrv = p: if withHaddock && p ? haddock then p.haddock else p;
107 };
107 };
108 ghcEnv = ghcForComponent {
108 ghcEnv = ghcForComponent {