-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from adetokunbo/use-dev-dot-nix
Use dev.nix to simplify future nix dev updates
- Loading branch information
Showing
4 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
let | ||
pkgsNix = import ./h8x.nix; | ||
dev = import ./dev.nix; | ||
pkgs-nix = import ./h8x.nix; | ||
in | ||
{ pkgs ? pkgsNix | ||
{ pkgs ? pkgs-nix | ||
} : pkgs.haskell-nix.cabalProject { | ||
# 'cleanGit' cleans a source directory based on the files known by git | ||
src = pkgs.haskell-nix.haskellLib.cleanGit { | ||
name = "mem-info"; | ||
src = ./.; | ||
}; | ||
|
||
# Specify the GHC version to use. | ||
compiler-nix-name = "ghc928"; | ||
|
||
# Specify the hackage index state | ||
index-state = "2023-11-24T00:00:00Z"; | ||
inherit (dev) compiler-nix-name index-state; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
# Pin haskell-nix to a recent (as of 2023/11/24) commit | ||
h8x-commit = "c6e3c91844e91f86cb64015258eed2ed8545d2a9"; | ||
|
||
# Specify the GHC version to use. | ||
compiler-nix-name = "ghc928"; | ||
|
||
# Specify the hackage index state | ||
index-state = "2023-11-24T00:00:00Z"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters