source: https://elatov.github.io/2022/01/building-a-nix-package/