mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
Add support for jailbreak-cabal utility to the Cabal builder.
Jailbreaks-cabal allows Nixpkgs maintainers to quick-fix builds of packages that over-specify their version requirements by removing the version restrictions of all dependencies from the Cabal file. Set jailbreak = true in the build expression to activate this feature.
This commit is contained in:
parent
2ccd0238cb
commit
470ade254e
|
@ -1,6 +1,6 @@
|
||||||
# generic builder for Cabal packages
|
# generic builder for Cabal packages
|
||||||
|
|
||||||
{stdenv, fetchurl, lib, pkgconfig, ghc, Cabal, enableLibraryProfiling ? false} :
|
{ stdenv, fetchurl, lib, pkgconfig, ghc, Cabal, jailbreakCabal, enableLibraryProfiling ? false }:
|
||||||
{
|
{
|
||||||
mkDerivation =
|
mkDerivation =
|
||||||
args : # arguments for the individual package, can modify the defaults
|
args : # arguments for the individual package, can modify the defaults
|
||||||
|
@ -86,7 +86,8 @@
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
eval "$preConfigure"
|
eval "$preConfigure"
|
||||||
|
|
||||||
for i in Setup.hs Setup.lhs; do
|
${lib.optionalString (lib.attrByPath ["jailbreak"] false self) "${jailbreakCabal}/bin/jailbreak-cabal ${self.pname}.cabal && "
|
||||||
|
}for i in Setup.hs Setup.lhs; do
|
||||||
test -f $i && ghc --make $i
|
test -f $i && ghc --make $i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue