‹ BackHN Continuity

Thread

From Thin Air to Bootable Images: The Tine Build System

40 points · 22 comments · Levitating

  1. amelius · · focus · HN ↗
    Why cant we just use Nix for building anything? A unified approach to building stuff.
    1. aidanhs · · focus · HN ↗
      Nix is very awkward (and slow) to use for fine-grained caching, which is price of entry for a decent build system.

      It also comes (practically) shackled to nixpkgs which is a barely-documented cataclysm of packages that extensively bake in assumptions that you are also going to use Nix as your runtime environment.

      The principles behind Nix are nice but the implementation is sorely lacking in my experience.

      1. steeleduncan · · focus · HN ↗
        > Nix is very awkward (and slow) to use for fine-grained caching, which is price of entry for a decent build system.

        This is sadly true, I've tried setting up a bazel-esque C++ build system in Nix, and the requirement for 1 derivation per .o file makes it very inefficient

        > It also comes (practically) shackled to nixpkgs

        This isn't true, and I think it is a shame that it seems true. Nixpkgs is both awful, and completely optional. It would be great if there were more resources on how to use Nix without Nixpkgs, or as is commonly requested, a smaller, cleaner and better engineered alternative

        1. amelius · · focus · HN ↗
          Honestly, I'm hoping for someone to use AI to translate the Nix universe of scripts to a saner and more modern, user-friendly language.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.