Skip to content

Commit 68a5edb

Browse files
authored
README: Update usage example (#619)
Previously the example would blurt trace: WARNING: `cleanGit` called on /home/ben/code/trec-car/mediawiki-annotate without a `name`. Consider adding `name = "mediawiki-annotate";` trace: WARNING: A `ghc` argument was passed for source this has been deprecated in favour of `compiler-nix-name`. Using `ghc` will break cross compilation setups, as haskell.nix can notpick the correct `ghc` package from the respective buildPackages. For example use `compiler-nix-name = "ghc865";` for ghc 8.6.5
1 parent a29ef56 commit 68a5edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ in
3737
# 'cabalProject' generates a package set based on a cabal.project (and the corresponding .cabal files)
3838
pkgs.haskell-nix.cabalProject {
3939
# 'cleanGit' cleans a source directory based on the files known by git
40-
src = pkgs.haskell-nix.haskellLib.cleanGit { src = ./.; };
41-
ghc = pkgs.buildPackages.pkgs.haskell-nix.compiler.${haskellCompiler};
40+
src = pkgs.haskell-nix.haskellLib.cleanGit { name = "haskell-nix-project"; src = ./.; };
41+
compiler-nix-name = haskellCompiler;
4242
}
4343
#+end_src
4444

0 commit comments

Comments
 (0)