pkglist: add a doc-test
pkglist: don't hard-code paths to input and output
Automate generation of the nix expressions using a makefile.