News for hackers. Stuff that matters.
Re:My First Impressions of Nix by thumbuddy on Monday June 19, 2023 @10:25AM (#36391416)
You're omitting the entire thing about learning how to write nix. Which is nightmare fuel even for FP fans.
Re:My First Impressions of Nix by SuperSandro2000 on Monday June 19, 2023 @11:23AM (#36392112)
Unless you are attempting advanced things you don't need to know a lot about the language and how the more advanced things work.
Re:My First Impressions of Nix by pxc on Monday June 19, 2023 @12:15PM (#36392780)
Imo the harder part is learning bespoke build processes that you may not own in order to get software that assumes it can perform arbitrary network access or other naughtiness at build time to build successfully in a restricted sandbox.

The language is maybe a little strange at first but there's really not much to it.

Re:My First Impressions of Nix by kaba0 on Monday June 19, 2023 @12:31PM (#36393012)
Just find a project written in the same language that is already packaged and copy it, modify the name, version, source url, hash and that’s it.

It is one thing that is easier done from the top, instead from the bottom.

Re:My First Impressions of Nix by carlhjerpe on Monday June 19, 2023 @05:50PM (#36396908)
You don't have to know how to write Nix to write 95% of all Nix, it's just "JSON with functions" after all. There are definitely advanced things that the Nix and NixOS developers maintain for me.

Just like I don't know how to implement any crypto, or how to implement efficient 3D pathfinding I don't know how to implement NixOS. But I can write a derivation using the helper functions for the language I want to package, which aren't many these days since nixpkgs is huge already.