-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
idrisPackages.optparse: init at 2016-06-18 [wip] #19018
idrisPackages.optparse: init at 2016-06-18 [wip] #19018
Conversation
Taking a look, thanks! |
OK so I can test this myself in a few hours, but you should just be able to add |
Weird that the Travis build is passing. Can anyone build this locally? |
Travis just checks general nixpkgs evaluation, not the actual package build. |
This package also requires lens, which also doesn't compile with new versions of Idris. Nor does it have a README (idris-hackers/idris-lens#4), nor does it have a license (idris-hackers/idris-lens#5). I'm going to try to fix up that project with a few PRs, but it might take a minute. I'll update here when done. |
After some more digging and more PRs, I've got it narrowed down to (hopefully) the last issue: HuwCampbell/idris-lens#7. I'll have to update that lens package again, but won't take long. Nothing like a chain of broken dependencies 😈 |
Okay, my PR was accepted so I've rebased and squashed! Now I'm getting a new error that I don't understand (I've included Bifunctors in the build inputs, after all).
|
Strange, this seems to be happening for any library that doesn't ship with idris itself. |
Ah! Happens for idris-packaged libs too, unless you happen to request a library in the top-level namespace. strace output showing the issue (for
|
It should be looking for/eventually finding base/Data/So.ibc |
And indeed, |
Oops, my mistake, I wanted |
Ah, optparse.ipkg just has |
@shlevy Wow, thank you so much for all your investigation! |
@shlevy What do you mean "instead of listing dependencies"? Could it be fixed by a PR? |
Ugh, after changing the buildPhase = ''
${idris}/bin/idris --build *.ipkg -p bifunctors
''; I get
|
@siddhanathan The ipkg format has a field for dependencies listed declaratively, rather than specifying the idris command line flag: http://docs.idris-lang.org/en/latest/reference/packages.html
|
@siddhanathan I'm unclear what the status of this pull request is. Did you finally get everything building, or is there still more work to be done? |
@ocharles No, I've not got this working. It probably could be done now that the ipkg is fixed upstream, but I'm not using Idris these days. |
@siddharthist Feel free to reopen if you come back to this. |
I have created HuwCampbell/optparse-idris#7 which when merged will mean this can be re-opened |
Motivation for this change
This isn't working quite yet, I was hoping to get some help from @shlevy. This package requires
idrisPackages.wl-pprint
, but I don't know how to add it to the build. Do I need to use with-packages.nix? If so, would you mind posting some example code?Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)