on iko/ghcjs-patch-master help sign in
Allow users to override hackage.nix and stackage.nix revision pins

This would be useful if the project needs to stay with an old version of haskell.nix but use recent version of hackage.nix/stackage.nix. Normally latest haskell.nix and latest hackage/stackage are best.

commitd1ed4f2f0453b78dfd14a48e9250776cdb2d371a authorRodney Lorrimar <rodney.lorrimar@iohk.io> dateWed 13 Feb 2019, 15:08 (8 years ago) parent7446d04
1 file changed+7−2
default.nix+7−2
default.nix+7−2
@@ -1,4 +1,9 @@
11{ pkgs ? import <nixpkgs> {}
2+
3+# You can provide different pins for hackage.nix and stackage.nix if required.
4+# It's also possible to override these sources with NIX_PATH.
5+, hackageSourceJSON ? ./hackage-src.json
6+, stackageSourceJSON ? ./stackage-src.json
27}:
38
49let
@@ -31,14 +36,14 @@ let
3136 # All packages from Hackage as Nix expressions
3237 hackage = import (fetchExternal {
3338 name = "hackage-exprs-source";
34− specJSON = ./hackage-src.json;
39+ specJSON = hackageSourceJSON;
3540 override = "hackage";
3641 });
3742
3843 # The set of all Stackage snapshots
3944 stackage = import (fetchExternal {
4045 name = "stackage-snapshot-source";
41− specJSON = ./stackage-src.json;
46+ specJSON = stackageSourceJSON;
4247 override = "stackage";
4348 });
4449