mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
4952abb034
* Add GHC-9.2.6 * More ghc 9.2.6 changes * ifdLevel 0 * ifdLevel 1 * More aarch64 materialization * Add spdx 3.19 materialization * ifdLevel 2 * Remaining materialization files * ifdLevel 3 * More materialization --------- Co-authored-by: Hamish Mackenzie <Hamish.K.Mackenzie@gmail.com>
31 lines
1.2 KiB
Nix
31 lines
1.2 KiB
Nix
let
|
|
# Read in the Niv sources
|
|
sources = import ./nix/sources.nix {};
|
|
# If ./nix/sources.nix file is not found run:
|
|
# niv init
|
|
# niv add input-output-hk/haskell.nix -n haskellNix
|
|
|
|
# Fetch the haskell.nix commit we have pinned with Niv
|
|
haskellNix = import sources.haskellNix {};
|
|
# If haskellNix is not found run:
|
|
# niv add input-output-hk/haskell.nix -n haskellNix
|
|
|
|
# Import nixpkgs and pass the haskell.nix provided nixpkgsArgs
|
|
pkgs = import
|
|
# haskell.nix provides access to the nixpkgs pins which are used by our CI,
|
|
# hence you will be more likely to get cache hits when using these.
|
|
# But you can also just use your own, e.g. '<nixpkgs>'.
|
|
haskellNix.sources.nixpkgs-unstable
|
|
# These arguments passed to nixpkgs, include some patches and also
|
|
# the haskell.nix functionality itself as an overlay.
|
|
haskellNix.nixpkgsArgs;
|
|
in pkgs.haskell-nix.project {
|
|
# 'cleanGit' cleans a source directory based on the files known by git
|
|
src = pkgs.haskell-nix.haskellLib.cleanGit {
|
|
name = "haskell-nix-project";
|
|
src = ./.;
|
|
};
|
|
# Specify the GHC version to use.
|
|
compiler-nix-name = "ghc926"; # Not required for `stack.yaml` based projects.
|
|
}
|