git.iko.soy/typeable/schematic
on master help sign in
Upd release.nix
commit060ed7cc3082064b85f387fe682547092eb4335f authorDmitry Bushev <bushevdv@gmail.com> dateMon 22 Jan 2018, 10:57 (9 years ago) parente734800
2 files changed+11−13
release.nix+11−7 stackage-overlay.json−6
release.nix+11−7
@@ -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 })
stackage-overlay.jsondeleted−6
@@ -1,6 +0,0 @@
1−{
2− "owner": "4e6",
3− "repo": "nixpkgs-stackage",
4− "rev": "c028e190e6a7dc731d79e66fcec7db362025040d",
5− "sha256": "09b69v611d1bxkv3ak68wpah97gk24xbyc2kgkmi0fgcq87qrd4v"
6−}