Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nix wrappers #38

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Add Nix wrappers #38

merged 1 commit into from
Oct 10, 2017

Conversation

4e6
Copy link
Contributor

@4e6 4e6 commented Sep 29, 2017

Nix

close #3
close #4
close #5
close #14
close #16

Nix infrastructure.

stackage2nix

Directory contains ready-to-use stackage2nix wrapper with
--all-cabal-hashes and --lts-haskell flags set up. It also has all
required executables on PATH.

Install stackage2nix:

$ nix-env -i -f ./stackage2nix

$ stackage2nix
Missing: (--resolver ARG | STACK_YAML)

stackage

Directory contains derivation that creates Stackage LTS from lts argument.

Build lts-9.0:

$ nix-build --argstr lts lts-9.0 ./stackage

$ ls result
configuration-packages.nix  packages.nix

haskellPackages

Directory contains Stackage LTS packages generated by stackage2nix from this
project's stack.yaml.

lib.nix

Provides Nix expressions for hackage-db, all-cabal-hashes and lts-haskell
sources.

@4e6
Copy link
Contributor Author

4e6 commented Sep 29, 2017

PR addresses usability issues. With Nix wrapper user is not required to set mandatory --all-cabal-hashes and --lts-haskell flags. Wrapper delegates maintenance of these service repositories to Nix.
cc @nc6

@4e6 4e6 merged commit 3c0961a into master Oct 10, 2017
@4e6 4e6 deleted the nix-stackage branch October 10, 2017 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant