-
Notifications
You must be signed in to change notification settings - Fork 8
Add nix files #24
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
base: master
Are you sure you want to change the base?
Add nix files #24
Conversation
|
@MaximilianHuber did you test yet? |
|
No, not yet, sorry. Still the same problems with the nixos+cabal setup due to the usage of the homedir by another OS. |
3a23032 to
67c27ea
Compare
Testing
|
|
It should not matter for That said, I just tried > nix-build shell.nix
…
these derivations will be built:
/nix/store/ks711vnkl5bj7bb9x749ns02yyzzxm3f-vgrep-0.2.0.0.drv
building path(s) ‘/nix/store/x5l3ah5mxfxradrl6im6rlimx2i42xrd-vgrep-0.2.0.0’
…
installing
Installing library in
/nix/store/x5l3ah5mxfxradrl6im6rlimx2i42xrd-vgrep-0.2.0.0/lib/ghc-8.0.1/vgrep-0.2.0.0
Installing executable(s) in
/nix/store/x5l3ah5mxfxradrl6im6rlimx2i42xrd-vgrep-0.2.0.0/bin
Warning: The directory
/nix/store/x5l3ah5mxfxradrl6im6rlimx2i42xrd-vgrep-0.2.0.0/bin is not in the
system search path.
Creating package registration file:
/nix/store/x5l3ah5mxfxradrl6im6rlimx2i42xrd-vgrep-0.2.0.0/lib/ghc-8.0.1/package.conf.d/vgrep-0.2.0.0.conf
…
patching script interpreter paths in /nix/store/x5l3ah5mxfxradrl6im6rlimx2i42xrd-vgrep-0.2.0.0
/nix/store/x5l3ah5mxfxradrl6im6rlimx2i42xrd-vgrep-0.2.0.0which does what it should do. I'm a bit torn: On one hand, this enables Nix users to build And after all, generating these two files is a simple |
|
This is a minimal script for generating #!/usr/bin/env nix-shell
#! nix-shell -p cabal2nix -i bash
cabal2nix . > default.nix
cabal2nix --shell . > shell.nix |
67c27ea to
e56e0ae
Compare
|
I have modified the README and removed the nix files |
generated via:
I will make a comment once I have tested them