2 description = "Alternative Haskell Infrastructure for Nixpkgs";
5 nixpkgs.follows = "nixpkgs-2105";
6 nixpkgs-2003 = { url = "github:NixOS/nixpkgs/nixpkgs-20.03-darwin"; };
7 nixpkgs-2009 = { url = "github:NixOS/nixpkgs/nixpkgs-20.09-darwin"; };
8 nixpkgs-2105 = { url = "github:NixOS/nixpkgs/nixpkgs-21.05-darwin"; };
9 nixpkgs-unstable = { url = "github:NixOS/nixpkgs/nixpkgs-unstable"; };
10 flake-utils = { url = "github:numtide/flake-utils"; };
12 url = "github:input-output-hk/hackage.nix";
16 url = "github:input-output-hk/stackage.nix";
20 url = "github:haskell/cabal/3.2";
24 url = "github:haskell/cabal/3.4";
28 url = "github:input-output-hk/cardano-shell";
33 owner = "input-output-hk";
35 ref = "release/8.6.5-iohk";
39 url = "github:sevanspowell/hpc-coveralls";
43 url = "github:input-output-hk/nix-tools";
47 url = "github:angerman/old-ghc-nix/master";
51 url = "github:phadej/HTTP";
56 outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils, ... }@inputs:
57 let compiler = "ghc884";
58 config = import ./config.nix;
61 overlay = self.overlays.combined;
62 overlays = import ./overlays { sources = inputs; };
66 overlays = [ self.overlay ];
71 overlaysOverrideable = import ./overlays;
72 # Compatibility with old default.nix
73 compat = { checkMaterialization ?
74 false # Allows us to easily switch on materialization checking
75 , system, sourcesOverride ? { }, ... }@args: rec {
76 sources = inputs // sourcesOverride;
77 allOverlays = import ./overlays (args // { inherit sources; });
79 # We are overriding 'overlays' and 'nixpkgsArgs' from the
80 # flake outputs so that we can incorporate the args passed
81 # to the compat layer (e.g. sourcesOverride).
82 overlays = [ allOverlays.combined ]
83 ++ (if checkMaterialization == true then
86 haskell-nix = prev.haskell-nix // {
87 checkMaterialization = true;
94 inherit config overlays;
97 (nixpkgsArgs // { localSystem = { inherit system; }; });
98 pkgs-unstable = import nixpkgs-unstable
99 (nixpkgsArgs // { localSystem = { inherit system; }; });
100 hix = import ./hix/default.nix { inherit pkgs; };
104 # Note: `nix flake check` evaluates outputs for all platforms, and haskell.nix
105 # uses IFD heavily, you have to have the ability to build for all platforms
106 # supported by haskell.nix, e.g. with remote builders, in order to check this flake.
107 # If you want to run the tests for just your platform, run `./test/tests.sh` or
108 # `nix-build -A checks.$PLATFORM`
109 } // flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ] (system: {
110 legacyPackages = (self.internal.compat { inherit system; }).pkgs;
112 # FIXME: Currently `nix flake check` requires `--impure` because coverage-golden
113 # (and maybe other tests) import projects that use builtins.currentSystem
114 checks = builtins.listToAttrs (map (pkg: {
117 }) (nixpkgs.lib.collect nixpkgs.lib.isDerivation (import ./test rec {
118 haskellNix = self.internal.compat { inherit system; };
119 compiler-nix-name = compiler;
120 pkgs = haskellNix.pkgs;
123 devShell = with self.legacyPackages.${system};
128 haskell-nix.compiler.${compiler}
129 haskell-nix.nix-tools.${compiler}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list