summaryrefslogtreecommitdiff
path: root/Specifying a License in a Flake output.md
diff options
context:
space:
mode:
Diffstat (limited to 'Specifying a License in a Flake output.md')
-rw-r--r--Specifying a License in a Flake output.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/Specifying a License in a Flake output.md b/Specifying a License in a Flake output.md
new file mode 100644
index 0000000..b14b0a4
--- /dev/null
+++ b/Specifying a License in a Flake output.md
@@ -0,0 +1,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`. \ No newline at end of file