Maybe `nim` should have an option to build a `makefile` \+ C files.

This would be easier packaging than the workarounds used in 
[pakku](https://github.com/kitsunyan/pakku/blob/master/Makefile), a package 
manager for Archlinux written in Nim. They use make to more easily [control the 
installation 
prefix](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pakku).

However this might be more trouble than it's worth, especially with packages 
that wrap header files and use `currentSourcePath`. It would probably be better 
to have a tool that deal with packaging Nim applications/library for 
distributions, it can just be `nimble deploy bin=/usr/bin lib=/usr/lib`.

Some distro like Debian or Archlinux like to run sanity checks on the final 
binary, postinstall tests would be valuable. (Those are different than 
unittesting, they can only test the high-level API.)

Reply via email to