This is a installable "flake"
which rather than providing a usual packages.<system>.<package>
output is in its entirety addable to environment.systemPackages
Installation is rather simple
Add this repo as a flake input
inputs.flake-package.url = "github:gerg-l/flake-package";
Pass your inputs to your modules
Then add inputs.flake-package
to environment.systemPackages
or users.users.<name>.packages
Rebuild, and you should be able to run flake-package
from your shell
the flexible type check of lib.types.package
here
because it's funny
use a multiarch statically compiled binary instead of a bash script