2,704 karma · joined May 5, 2014 (12y ago) · 1,214 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
If you push something to CI that needs some new dependencies, the CI machine will build them and when you want to get a local dev environment or deploy, the binaries will be fetched from the CI machine. We can also send the binaries between machines to save compile time. This is possible because we have confidence that it doesn't matter which machine built them because the environment is so strictly controlled.
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
For the second point, if you've got a package that just builds with the usual ./configure, make, make install, here is all you need to get a nix package for it:
{ stdenv }:
stdenv.mkDerivation {
name = "my-package";
src = ./.;
buildInputs = [ ... whatever dependencies you need ...];
}
And the standard build commands will be run automatically. The only thing that's kind of annoying is installing binary distributions of packages since they need to be patched to work on Nix, but it's not the end of the world. Also, nixpkgs is so universal that I very rarely find myself having to add a package that's not in it.comment 6y ago · link · parent
comment 6y ago · link · parent
comment 7y ago · link · parent
If you spent your whole life driving trucks and it's what you're good at, can you really transfer to a new occupation that's more fulfilling and well-paid in older age, or will you just be left unemployed or stuck with a worse job?
I think more automation is absolutely the future but we need to find some way to take care of the people who are left behind, and not just say "oh they'll get some other job".
comment 7y ago · link · parent
comment 8y ago · link · parent
It has a very large collection of packages already available, supports many existing build systems (CMake and autotools work out of the box, but you can hook up anything), and can download binary packages for almost everything.
comment 8y ago · link · parent
comment 9y ago · link · parent
Some implementations: https://github.com/ekmett/ersatz/tree/master/examples/regexp... https://gist.github.com/LeventErkok/4942496