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];
|
||||
|
||||
Reference in New Issue
Block a user