[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove some indirection layers



We've got Nix derivations whose build scripts are bash which only exists
to execute a single racket script. These racket scripts are wrappers
which only exist to import lib/* and run a single function. These
functions are wrappers which hook our impure environment and stdio into
some pure function.

Surely we could remove some of this indirection?

For example, we might have our Nix derivations use a (suitably wrapped)
racket binary as their builder instead of bash, and their build scripts
can import lib/* and do the required environment-hooking-up. That way,
we can discard many of the scripts/*.rkt files and the script/lib/*.rkt
files can be almost completely pure.