@@ -1,18 +1,18 @@
1−# stack2nix
1+# stackage2nix
3−[](https://travis-ci.org/4e6/stack2nix)
3+[](https://travis-ci.org/4e6/stackage2nix)
5−`stack2nix` converts a Stack file into a Nix Haskell packages set.
5+`stackage2nix` converts a Stack file into a Nix Haskell packages set.
6It creates LTS Stackage packages set, and applies appropriate overrides on top of it.
6It creates LTS Stackage packages set, and applies appropriate overrides on top of it.
9−stack2nix \
9+stackage2nix \
10 --lts-haskell "$LTS_HASKELL_REPO" \
10 --lts-haskell "$LTS_HASKELL_REPO" \
11 --all-cabal-hashes "$ALL_CABAL_HASHES_REPO" \
11 --all-cabal-hashes "$ALL_CABAL_HASHES_REPO" \
15−`stack2nix` has three required arguments:
15+`stackage2nix` has three required arguments:
16- `--lts-haskell` - path to [fpco/lts-haskell](https://github.com/fpco/lts-haskell)
16- `--lts-haskell` - path to [fpco/lts-haskell](https://github.com/fpco/lts-haskell)
17- `--all-cabal-hashes` - path to [commercialhaskell/all-cabal-hashes](https://github.com/commercialhaskell/all-cabal-hashes) checked out to `hackage` branch
17- `--all-cabal-hashes` - path to [commercialhaskell/all-cabal-hashes](https://github.com/commercialhaskell/all-cabal-hashes) checked out to `hackage` branch
18- `.` - path to stack.yaml file or directory
18- `.` - path to stack.yaml file or directory
@@ -32,7 +32,7 @@ nix-build -A <package-name>
33Complex projects may require some extra customization.
33Complex projects may require some extra customization.
34Snippet `override.nix` below shows a minimal example of how to apply additional
34Snippet `override.nix` below shows a minimal example of how to apply additional
35−overrides on top of Haskell packages set produced by `stack2nix`.
35+overrides on top of Haskell packages set produced by `stackage2nix`.
38with import <nixpkgs> {};
38with import <nixpkgs> {};
@@ -40,13 +40,13 @@ with pkgs.haskell.lib;
40let haskellPackages = import ./. {};
40let haskellPackages = import ./. {};
41in haskellPackages.override {
41in haskellPackages.override {
42 overrides = self: super: {
42 overrides = self: super: {
43− stack2nix = disableSharedExecutables super.stack2nix;
43+ stackage2nix = disableSharedExecutables super.stackage2nix;
49−nix-build -A stack2nix override.nix
49+nix-build -A stackage2nix override.nix
52For more complex overrides and detailed information on how to work with Haskell packages in Nix, see Nixpkgs manual [User’s Guide to the Haskell Infrastructure](http://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure)
52For more complex overrides and detailed information on how to work with Haskell packages in Nix, see Nixpkgs manual [User’s Guide to the Haskell Infrastructure](http://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure)
@@ -54,5 +54,5 @@ For more complex overrides and detailed information on how to work with Haskell
55## Examples
55## Examples
57−For other examples of `stack2nix` usage, see [4e6/stack2nix-examples](https://github.com/4e6/stack2nix-examples) repository.
57+For other examples of `stackage2nix` usage, see [4e6/stackage2nix-examples](https://github.com/4e6/stackage2nix-examples) repository.
58−It verifies `stack2nix` by running it on different public projects.
58+It verifies `stackage2nix` by running it on different public projects.