File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 5
5
let
6
6
sharedOverrides = {
7
7
overrides = _self : super : {
8
+ # we override mkDerivation here to apply the following
9
+ # tweak to each haskell package:
10
+ # if the package is broken, then we disable its check and relax the cabal bounds;
11
+ # otherwise, we leave it unchanged.
12
+ # hopefully, this could fix packages marked as broken by nix due to check failures
13
+ # or the build failure because of tight cabal bounds
8
14
mkDerivation = args :
9
15
let
10
16
broken = args . broken or false ;
11
17
check = args . doCheck or true ;
12
- in super . mkDerivation ( args // { jailbreak = broken ; doCheck = if broken then false else check ; } ) ;
18
+ jailbreak = args . jailbreak or false ;
19
+ in super . mkDerivation ( args // {
20
+ jailbreak = if broken then true else jailbreak ;
21
+ doCheck = if broken then false else check ;
22
+ } ) ;
13
23
} ;
14
24
} ;
15
25
ourSources = {
You can’t perform that action at this time.
0 commit comments