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
commit68a5edb9ee836262bde249b640973e4bc0574a72
authorBen Gamari <ben@smart-cactus.org>
dateTue 19 May 2020, 20:55 (6 years ago)
parenta29ef56
README.org+2−2
@@ -37,8 +37,8 @@ in
3737# 'cabalProject' generates a package set based on a cabal.project (and the corresponding .cabal files)
3838pkgs.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