mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-10-26 09:37:17 +03:00
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.
This commit is contained in:
parent
7446d044a0
commit
d1ed4f2f04
@ -1,4 +1,9 @@
|
||||
{ pkgs ? import <nixpkgs> {}
|
||||
|
||||
# You can provide different pins for hackage.nix and stackage.nix if required.
|
||||
# It's also possible to override these sources with NIX_PATH.
|
||||
, hackageSourceJSON ? ./hackage-src.json
|
||||
, stackageSourceJSON ? ./stackage-src.json
|
||||
}:
|
||||
|
||||
let
|
||||
@ -31,14 +36,14 @@ let
|
||||
# All packages from Hackage as Nix expressions
|
||||
hackage = import (fetchExternal {
|
||||
name = "hackage-exprs-source";
|
||||
specJSON = ./hackage-src.json;
|
||||
specJSON = hackageSourceJSON;
|
||||
override = "hackage";
|
||||
});
|
||||
|
||||
# The set of all Stackage snapshots
|
||||
stackage = import (fetchExternal {
|
||||
name = "stackage-snapshot-source";
|
||||
specJSON = ./stackage-src.json;
|
||||
specJSON = stackageSourceJSON;
|
||||
override = "stackage";
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user