--- tags: - nix --- While [[Building Go applications or packages with Nix]] I encountered a step where we need to specify a license. Documentation on this can be found [here](https://nixos.org/manual/nixpkgs/stable/#var-meta-license). [This](https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix) file in Nixpkgs on Github shows available licenses. For example, the Apache-2.0 License is referenced through `lib.licenses.asl20`.