From 054da40f0fa1cf012b69e0cb1ca233d1813e2871 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 19 Nov 2022 04:46:37 +0300 Subject: [PATCH] fix license --- LICENSE => COPYING | 0 README.md | 10 ++++++++-- lib.nix | 16 ++++++++++++++++ lib.test.nix | 16 ++++++++++++++++ 4 files changed, 40 insertions(+), 2 deletions(-) rename LICENSE => COPYING (100%) diff --git a/LICENSE b/COPYING similarity index 100% rename from LICENSE rename to COPYING diff --git a/README.md b/README.md index 71a647d..edda758 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ into lua format. This library was initially designed for my personal [neovim flake](https://git.pleshevski.ru/mynix/neovim). -## Installation +# Installation Add nix2lua as input to your flake.nix @@ -31,7 +31,7 @@ Add nix2lua as input to your flake.nix } ``` -## References +# References `toLua expr` @@ -76,3 +76,9 @@ Add nix2lua as input to your flake.nix > (mkNamedField "bar" "baz") > ]; > ``` + +# License + +GNU General Public License v3.0 or later + +See [COPYING](./COPYING) to see the full text. diff --git a/lib.nix b/lib.nix index 01ad4cd..09589d0 100644 --- a/lib.nix +++ b/lib.nix @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2022, Dmitriy Pleshevskiy + * + * nix2lua is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * nix2lua is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with nix2lua. If not, see . + */ let inherit (builtins) isString isFloat isInt isBool isList isAttrs isNull isPath; inherit (builtins) concatStringsSep filter mapAttrs attrValues; diff --git a/lib.test.nix b/lib.test.nix index 5a9ba54..c4f9512 100644 --- a/lib.test.nix +++ b/lib.test.nix @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2022, Dmitriy Pleshevskiy + * + * nix2lua is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * nix2lua is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with nix2lua. If not, see . + */ { pkgs ? import { } }: let