@@ -3,26 +3,30 @@
33}:
44
55let
6− nixpkgs = import <nixpkgs> {};
7− inherit (nixpkgs) pkgs lib;
6+ _nixpkgs = import <nixpkgs> {};
7+ inherit (_nixpkgs) pkgs lib;
88
9− stackageOverlayPath = pkgs.fetchFromGitHub (lib.importJSON ./stackage-overlay.json);
9+ stackageOverlayPath = pkgs.fetchFromGitHub {
10+ owner = "typeable";
11+ repo = "nixpkgs-stackage";
12+ rev = "abe0a03ba2bde609b0707ce45301ec836cb3ed29";
13+ sha256 = "0ksdk83zbsgvs30izwsfyjh4xxwz8dsn9a5igrs3pjap4whpzqfv";
14+ };
1015
1116 nixpkgsArgs = {
1217 overlays = [ (import stackageOverlayPath) ];
13− #config = { allowUnfree = false; inHydra = true; };
1418 };
1519
1620 release = import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit nixpkgsArgs supportedSystems; };
1721
18− mkSchematic = system:
22+ mkStackage = system:
1923 let
2024 nixpkgs = release.pkgsFor system;
2125 stackage = nixpkgs.haskell.packages.stackage.lib.callStackage2nix "schematic" schematicSrc { inherit nixpkgs; };
2226 in
23− stackage.schematic;
27+ stackage;
2428
2529in
2630 lib.genAttrs supportedSystems (system: {
27− schematic = pkgs.haskell.lib.triggerRebuild (mkSchematic system) 0;
31+ inherit (mkStackage system) schematic;
2832 })