summaryrefslogtreecommitdiff
path: root/Specifying a License in a Flake output.md
blob: b14b0a46c8266d0cc8bcdeb7fbb628595c53f501 (plain)
1
2
3
4
5
6
7
8
9
---
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`.