I use NixOS for my personal development and on professional projects that are live on NixOS right now. AMA
NixOS 16.09 released
21–30 of 31 posts
Re: NixOS 16.09 released
#22Re: NixOS 16.09 released
#23I use NixOS for my personal development and on professional projects that are live on NixOS right now. AMA
What do you do for Haskell development?
With all this in place in a project, building is as easy as nix-build. Development is as easy as nix-shell. For convenience we have scripts that wrap the workflow for activating a ghci or ghcid shell and some other functions. Deploying to AWS is easy, even though I've never done it myself.
One problem we have is build times with nix. In order to ameliorate this, we have a build server set up with the out of the box nix infrastructure. A developer only needs to build when they make their own changes; within a few minutes of a push the build server will compile the new project derivations and they'll be available to everyone else as binaries. It all Just Works.
As for specifics, the currently implemented Haskell infrastructure in Nix is pretty good. For my personal development I have a few auxiliary scripts a friend of mine cooked up to do very streamlined development. I'm still getting used to it so I can't say much on that front, but it's a very thin wrapper over the stuff in nix. The nix language is really gnarly, but if you can grok it then you can program your build environments in a purely functional way, and that's amazing! I would recommend to every developer that they set up their environment the way they want it. Nix is very flexible and robust. It will handle everything for you, you just need to tell it what you want.
Re: NixOS 16.09 released
#24For those wondering the procedure is basically nixos-channel add /path/to/16.09
nixos-rebuild switch --upgrade
Re: NixOS 16.09 released
#25Just did the upgrade an hour ago (from 16.03) super fast and easy and everything still works. Great job nixos team. For those wondering the procedure is basically nixos-channel add /path/to/16.09 nixos-rebuild switch --upgrade
You can even downgrade if you want. I've switched to unstable and back to 16.03 (and now to 16.09) without a reinstall and everything still works perfectly.
Re: NixOS 16.09 released
#26If you found out through gdb that your code compiled with -O0 was still somehow optimized by gcc, or if you found out that your gcc did not optimize your code aggressively enough although you gave it -Ofast, check out this issue [0]. [0] https://github.com/NixOS/nixpkgs/issues/18995 Yeah. The devs believed it was okay to make gcc -O2 by default and impossible to override from the command line you gave to gcc. If you…
Related: enabling debug symbols for all packages by default (in a separated output): https://github.com/NixOS/nixpkgs/issues/18530
Unf I'm seeing a unicorn (GitHub fail whale) currently, so I cannot see the issue.
Re: NixOS 16.09 released
#27The main issue I had while using NixOS is that it has a small and somewhat broken set of packages. This is compounded by the very incomplete Nix documentation - its way too hard to create new packages.
Re: NixOS 16.09 released
#28Re: NixOS 16.09 released
#29Earlier quoted context omitted.
Can you share your NixOS config?
Sure! I need to scrub some bits that have to do with work, but I can paste it up and link it here tomorrow morning.
Re: NixOS 16.09 released
#30Earlier quoted context omitted.
Sure! I need to scrub some bits that have to do with work, but I can paste it up and link it here tomorrow morning.
Here it is! http://pastebin.com/hSF1zbr9