@@ -3,26 +3,30 @@
6− nixpkgs = import <nixpkgs> {};
6+ _nixpkgs = import <nixpkgs> {};
7− inherit (nixpkgs) pkgs lib;
7+ inherit (_nixpkgs) pkgs lib;
9− stackageOverlayPath = pkgs.fetchFromGitHub (lib.importJSON ./stackage-overlay.json);
9+ stackageOverlayPath = pkgs.fetchFromGitHub {
11+ repo = "nixpkgs-stackage";
12+ rev = "abe0a03ba2bde609b0707ce45301ec836cb3ed29";
13+ sha256 = "0ksdk83zbsgvs30izwsfyjh4xxwz8dsn9a5igrs3pjap4whpzqfv";
11 nixpkgsArgs = {
16 nixpkgsArgs = {
12 overlays = [ (import stackageOverlayPath) ];
17 overlays = [ (import stackageOverlayPath) ];
13− #config = { allowUnfree = false; inHydra = true; };
16 release = import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit nixpkgsArgs supportedSystems; };
20 release = import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit nixpkgsArgs supportedSystems; };
18− mkSchematic = system:
22+ mkStackage = system:
20 nixpkgs = release.pkgsFor system;
24 nixpkgs = release.pkgsFor system;
21 stackage = nixpkgs.haskell.packages.stackage.lib.callStackage2nix "schematic" schematicSrc { inherit nixpkgs; };
25 stackage = nixpkgs.haskell.packages.stackage.lib.callStackage2nix "schematic" schematicSrc { inherit nixpkgs; };
23− stackage.schematic;
27+ stackage;
26 lib.genAttrs supportedSystems (system: {
30 lib.genAttrs supportedSystems (system: {
27− schematic = pkgs.haskell.lib.triggerRebuild (mkSchematic system) 0;
31+ inherit (mkStackage system) schematic;