Skip to content

haskell-packages: Add minimal benchDepends support #23235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2017

Conversation

expipiplus1
Copy link
Contributor

See also: NixOS/cabal2nix#262

cc @peti

@mention-bot
Copy link

@expipiplus1, thanks for your PR! By analyzing the history of the files in this pull request, we identified @peti, @cstrahan and @basvandijk to be potential reviewers.

@domenkozar domenkozar added 6.topic: haskell 9.needs: changelog This PR needs a changelog entry labels Feb 27, 2017
@domenkozar
Copy link
Member

Looks harmless :)

@domenkozar domenkozar merged commit 14b6f2a into NixOS:master Feb 27, 2017
@@ -13,6 +13,7 @@
, configureFlags ? []
, description ? ""
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
, doBench ? false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option suggests to users that the build would run (or compile) the package's benchmarks, but in fact it does not. That feels a little counter-intuitive and misleading.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would withBenchmarkDepends be better? I'm not sure when we'd want to run the benchmarks in a nix build. My use case here is to make the benchmark dependencies available in the shell environment.

@@ -38,6 +39,7 @@
, passthru ? {}
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? []
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
, benchDepends ? []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned elsewhere, this option should be called "benchmarkDepends", IMHO, for consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha, I'll open another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: haskell 9.needs: changelog This PR needs a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants