Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, we should have types!

Yes, we should have better docs! (I think we have a bad mix of authoritative reference and tutorial that fails on both counts.)

But if you want types, I daresay you are already understanding the basics of how the functional language works :). I imagine your problems are less:

wtf is: ((x: x x) (y: y y))

and more:

wtf is stdenv, wtf is mkDerivation, wtf is a setup hook, why are othre build systems hacks on top of the autotools defaults, and not clean alternatives? etc. etc.



> wtf is: ((x: x x) (y: y y))

Well to be fair i don't understand this syntax. But i guess i should be able to learn it in under one page of docs.

> wtf is stdenv, wtf is mkDerivation, wtf is a setup hook, why are othre build systems hacks on top of the autotools defaults, and not clean alternatives? etc. etc.

But yes my problem is that i don't have a list of standard options and their types so i end up doing copy-pasta of what works in another package and adjust until it works. On a higher level, i've found it harder than expected to turn an existing package declaration from nixOS into a source-provided build file to try and build a specific branch. Or to use an existing NixOS declaration to build a reproducible (and installable) liveUSB as there seems to be various tools doing this job but i couldn't get any of them to build successfully.

I'm interested if you have good learning resources to share!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: