fix license

This commit is contained in:
Dmitriy Pleshevskiy 2022-11-19 04:46:37 +03:00
parent a0f64eb70e
commit 054da40f0f
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
4 changed files with 40 additions and 2 deletions

View file

View file

@ -6,7 +6,7 @@ into lua format.
This library was initially designed for my personal This library was initially designed for my personal
[neovim flake](https://git.pleshevski.ru/mynix/neovim). [neovim flake](https://git.pleshevski.ru/mynix/neovim).
## Installation # Installation
Add nix2lua as input to your flake.nix Add nix2lua as input to your flake.nix
@ -31,7 +31,7 @@ Add nix2lua as input to your flake.nix
} }
``` ```
## References # References
`toLua expr` `toLua expr`
@ -76,3 +76,9 @@ Add nix2lua as input to your flake.nix
> (mkNamedField "bar" "baz") > (mkNamedField "bar" "baz")
> ]; > ];
> ``` > ```
# License
GNU General Public License v3.0 or later
See [COPYING](./COPYING) to see the full text.

16
lib.nix
View file

@ -1,3 +1,19 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@pleshevski.ru>
*
* 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 <https://www.gnu.org/licenses/>.
*/
let let
inherit (builtins) isString isFloat isInt isBool isList isAttrs isNull isPath; inherit (builtins) isString isFloat isInt isBool isList isAttrs isNull isPath;
inherit (builtins) concatStringsSep filter mapAttrs attrValues; inherit (builtins) concatStringsSep filter mapAttrs attrValues;

View file

@ -1,3 +1,19 @@
/**
* Copyright (C) 2022, Dmitriy Pleshevskiy <dmitriy@pleshevski.ru>
*
* 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 <https://www.gnu.org/licenses/>.
*/
{ pkgs ? import <nixpkgs> { } }: { pkgs ? import <nixpkgs> { } }:
let let