4 ms·
> It's not a build script, it's a derivation. Yes, because derivation's aren't build scripts. If you look in a .drv file (or better yet, pipe it through pretty
by chriswarbo 5y ago
> It's not a build script, it's a derivation.
Yes, because derivation's aren't build scripts. If you look in a .drv file (or better yet, pipe it through pretty-derivation), you'll see that derivations have a reference to a builder (i.e. the path to a binary), but derivations themselves aren't build scripts; they define the arguments and env vars for the builder (plus references to dependencies, output paths, and OS/architecture).
In practice, pretty much everything in Nixpkgs uses Bash as its builder; and almost all of those use the same 'default-builder.sh' script. However, Nix itself is independent of Nixpkgs, and we can give it any executable we like.