diff options
| author | Vladimir Kirillov <proger@wilab.org.ua> | 2014-05-05 23:36:34 +0300 |
|---|---|---|
| committer | Vladimir Kirillov <proger@wilab.org.ua> | 2014-05-06 11:00:48 +0300 |
| commit | 7eff825487ff08fba733fa56669fb3caa0a14726 (patch) | |
| tree | 12d6831d7b2482d8e7fb3a54c083ba82f0a0e52e /pkgs/development/python-modules/rangehttpserver | |
| parent | f69be7d8af8c37b7400b0ef33d4784f3c95771f2 (diff) | |
buildLocalCabal: allow cabalDrvArgs in buildLocalCabalWithArgs
allows to write neat expressions like (as we're still generating an
expression string):
```
{
build = haskellPackages.buildLocalCabalWithArgs {
inherit src name;
cabalDrvArgs = {
jailbreak = false;
doCheck = false;
};
};
}
```
without resorting to weird kung-fu like darcs does:
```
darcs = haskellPackages.darcs.override {
# A variant of the Darcs derivation that containts only the
# executable and
# thus has no dependencies on other Haskell packages.
cabal = { mkDerivation = x: rec { final = haskellPackages.cabal.mkDerivation (self: (x final) // {
isLibrary = false;
configureFlags = "-f-library"; }); }.final;
};
};
```
While here, move the `jailbreak = true;` as the default `cabalDrvArgs`
option.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
