diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-11-16 10:32:26 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-11-16 11:04:25 -0500 |
commit | 8368a8aff1b70e98a4997d803e34bfdc2acf10f4 (patch) | |
tree | 2f571a0e86488cb89e1f6053d81ff26705291a7d /doc/manual/theme | |
parent | 8c93a481af2ce8fbcdb9e2bbcc9559d52703112f (diff) |
Make docker.nix match Nixpkgs's idioms
1. `target` is the wrong name, that is just for compilers per out
standard terminology. We just need to worry about "build" and "host".
2. We only need one `pkgs`. `pkgs.buildPackages` is how we get anything
we need at build time.
3. `crossSystem` is the name of a nixpkgs parameter that is actually an
attribute set, not a 2-part "cpu-os" string.
3. `pkgsCross` effectively evaluates Nixpkgs twice, which is
inefficient. It is just there for people poking around the CLI / REPL
(and I am skeptical even that is a good idea), and *not* what written
code should use, especially code that is merely parametric in the package set
it is given.
4. We don't need to memoize Nixpkgs here because we are only doing one
pkg set at a time (no `genAttrs`) so it's better to just delete all this
stuff. `flake.nix` instead would do something like that, with
`genAttrs` (though without `pkgsCross`), if and when we have hydra jobs
for cross builds.
Diffstat (limited to 'doc/manual/theme')
0 files changed, 0 insertions, 0 deletions