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

submodules support in project' #2154

Closed
domenkozar opened this issue Feb 2, 2024 · 2 comments
Closed

submodules support in project' #2154

domenkozar opened this issue Feb 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@domenkozar
Copy link
Contributor

domenkozar commented Feb 2, 2024

Currently:

final.haskell-nix.project' {
  src = ./.;
  compiler-nix-name = "ghc964";
};

Chokes with:

> stack-to-nix: /build/tmp.0LXUnio927/mysubproject: getDirectoryContents:openDirStream: does not exist (No such file or directory)

Where mysubproject is a git submodule listed in stack.yaml as a local package.

@domenkozar domenkozar added the bug Something isn't working label Feb 2, 2024
@domenkozar
Copy link
Contributor Author

domenkozar commented Feb 2, 2024

Solved with nix build '.?submodules=1#myattr' due to NixOS/nix#6633

@hamishmack
Copy link
Collaborator

For some reason on MacOS I've not been able to get . on its own to work. Instead I have to put the full URL in:

nix develop 'git+file:///Users/hamish/ghcjs-project?submodules=1#'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants