mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
Expose config.nix for flakes to use (#1238)
This commit is contained in:
@@ -62,7 +62,7 @@ Add `flake.nix`:
|
||||
};
|
||||
})
|
||||
];
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
|
||||
flake = pkgs.helloProject.flake {
|
||||
# This adds support for `nix build .#js-unknown-ghcjs-cabal:hello:exe:hello`
|
||||
crossPlatforms = p: [p.ghcjs];
|
||||
|
||||
@@ -188,7 +188,7 @@ Example `flake.nix` file:
|
||||
};
|
||||
})
|
||||
];
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
|
||||
flake = pkgs.helloProject.flake {
|
||||
# This adds support for `nix build .#js-unknown-ghcjs:hello:exe:hello`
|
||||
crossPlatforms = p: [p.ghcjs];
|
||||
|
||||
@@ -55,11 +55,12 @@
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils, ... }@inputs:
|
||||
let compiler = "ghc884";
|
||||
config = import ./config.nix;
|
||||
in {
|
||||
inherit config;
|
||||
overlay = self.overlays.combined;
|
||||
overlays = import ./overlays { sources = inputs; };
|
||||
internal = rec {
|
||||
config = import ./config.nix;
|
||||
nixpkgsArgs = {
|
||||
inherit config;
|
||||
overlays = [ self.overlay ];
|
||||
|
||||
Reference in New Issue
Block a user