@@ -1,8 +1,5 @@
11# CAUTION! a spelling mistake in arg string is ignored silently.
22#
3−# To include benchmark deps use:
4−# nix-shell --argstr c2nix "--benchmark --flag fusion-plugin"
5−#
63# To build the chart executable for running bench.sh use:
74# nix-shell --argstr c2nix "--flag dev" --run "cabal build chart --flag dev"
85#
@@ -36,6 +33,8 @@ let haskellPackages =
3633 then orig.overrideAttrs (oldAttrs: { src = null; })
3734 else orig;
3835
36+ flags = "--benchmark --flag fusion-plugin " + c2nix;
37+
3938 mkHaskellPackages = inShell:
4039 haskellPackages.override {
4140 # We could disbale doCheck on all like this, but it would make the
@@ -48,10 +47,10 @@ let haskellPackages =
4847 overrides = self: super:
4948 with nixpkgs.haskell.lib;
5049 {
51− streamly = mkPackage super "streamly" ./. c2nix inShell;
50+ streamly = mkPackage super "streamly" ./. flags inShell;
5251 streamly-benchmarks =
5352 mkPackage super "streamly-benchmarks"
54− ./benchmark c2nix inShell;
53+ ./benchmark flags inShell;
5554
5655 # Example to Use a different version of a package
5756 #QuickCheck = self.QuickCheck_2_14;