diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 0d488ed48ef2..2c7c3be792af 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -363,8 +363,6 @@ let makeGhcOptions = opts: lib.concatStringsSep " " (map (opt: "--ghc-option=${opt}") opts); - buildFlagsString = optionalString (buildFlags != [ ]) (" " + concatStringsSep " " buildFlags); - defaultConfigureFlags = [ "--verbose" "--prefix=$out" @@ -796,7 +794,7 @@ lib.fix ( # Cabal takes flags like `--configure-option=--host=...` instead configurePlatforms = [ ]; - inherit configureFlags; + inherit configureFlags buildFlags; # Note: the options here must be always added, regardless of whether the # package specifies `hardeningDisable`. @@ -830,7 +828,7 @@ lib.fix ( find dist/build -exec touch -d '1970-01-01T00:00:00Z' {} + '' + '' - ${setupCommand} build ${buildTarget}${buildFlagsString} + ${setupCommand} build ${buildTarget} $buildFlags runHook postBuild '';