1- { compiler ? "ghc8104 "
2- , rev ? "7e9b0dff974c89e070da1ad85713ff3c20b0ca97 "
3- , sha256 ? "1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36 "
1+ { compiler ? "ghc8107 "
2+ , rev ? "7a94fcdda304d143f9a40006c033d7e190311b54 "
3+ , sha256 ? "0d643wp3l77hv2pmg2fi7vyxn4rwy0iyr8djcw1h5x72315ck9ik "
44, pkgs ?
55 import ( builtins . fetchTarball {
66 url = "https://github.com/NixOS/nixpkgs/archive/${ rev } .tar.gz" ;
77 inherit sha256 ; } ) {
8- config . allowBroken = false ;
8+ config . allowBroken = false ; # autodocodec
99 config . allowUnfree = true ;
1010 }
11+ , mkDerivation ? null
1112} :
1213let gitignoreSrc = import ( pkgs . fetchFromGitHub {
1314 owner = "hercules-ci" ;
1415 repo = "gitignore" ;
15- rev = "2ced4519f865341adcb143c5d668f955a2cb997f " ;
16- sha256 = "0fc5bgv9syfcblp23y05kkfnpgh3gssz6vn24frs8dzw39algk2z " ;
16+ rev = "9e80c4d83026fa6548bc53b1a6fab8549a6991f6 " ;
17+ sha256 = "04n9chlpbifgc5pa3zx6ff3rji9am6msrbn1z3x1iinjz2xjfp4p " ;
1718 } ) { } ;
18-
1919in
20- pkgs . haskell . lib . doJailbreak ( pkgs . haskell . lib . dontCheck ( pkgs . haskell . packages . ${ compiler } . developPackage {
20+ pkgs . haskell . packages . ${ compiler } . developPackage {
2121 name = builtins . baseNameOf ./. ;
2222 root = gitignoreSrc . gitignoreSource ./. ;
2323
2424 overrides = self : super : with pkgs . haskell . lib ; {
25- # Don't run a package's test suite
26- # foo = dontCheck super.foo;
27- #
28- # Don't enforce package's version constraints
29- # bar = doJailbreak super.bar;
30- #
31- # Get a specific hackage version straight from hackage. Unlike the above
32- # callHackage approach, this will always succeed if the version is on
33- # hackage. The downside is that you have to specify the hash manually.
3425 configuration-tools = self . callHackageDirect {
3526 pkg = "configuration-tools" ;
36- ver = "0.6.0 " ;
37- sha256 = "0ia2bhy35qv1xgbqrx0jalxznj8zgg97y0zkp8cnr1r3pq5adbcd " ;
27+ ver = "0.6.1 " ;
28+ sha256 = "0vrml1gj6bb5f6x79m80k9wqn5qvjjzz8c6gf36mqwdqv30irxdv " ;
3829 } { } ;
3930
4031 streaming-events = doJailbreak ( self . callHackageDirect {
@@ -43,27 +34,15 @@ pkgs.haskell.lib.doJailbreak (pkgs.haskell.lib.dontCheck (pkgs.haskell.packages.
4334 sha256 = "11v9rrhvlxlq43m5pw63hdfn6n0fkqryphvplild1y920db96wk9" ;
4435 } { } ) ;
4536
46- # To discover more functions that can be used to modify haskell
47- # packages, run "nix-repl", type "pkgs.haskell.lib.", then hit
48- # <TAB> to get a tab-completed list of functions.
37+ autodocodec = markUnbroken super . autodocodec ;
38+ validity-aeson = markUnbroken super . validity-aeson ;
4939 } ;
5040 source-overrides = {
51- # Use a specific hackage version using callHackage. Only works if the
52- # version you want is in the version of all-cabal-hashes that you have.
53- # bytestring = "0.10.8.1";
54- #
55- # Use a particular commit from github
56- # parsec = pkgs.fetchFromGitHub
57- # { owner = "hvr";
58- # repo = "parsec";
59- # rev = "c22d391c046ef075a6c771d05c612505ec2cd0c3";
60- # sha256 = "0phar79fky4yzv4hq28py18i4iw779gp5n327xx76mrj7yj87id3";
61- # };
6241 } ;
6342 modifier = drv : pkgs . haskell . lib . overrideCabal drv ( attrs : {
6443 buildTools = ( attrs . buildTools or [ ] ) ++ [
6544 pkgs . haskell . packages . ${ compiler } . cabal-install
6645 pkgs . haskell . packages . ${ compiler } . ghcid
6746 ] ;
6847 } ) ;
69- } ) )
48+ }
0 commit comments