From 6816e68caff99844adf145856a6b0fc8053ff808 Mon Sep 17 00:00:00 2001 From: David Czihak Date: Thu, 7 May 2026 16:14:48 +0200 Subject: Chore: Clarify third-party licences for bundled assets and grammar --- LICENSE | 5 +++++ NOTICES.md | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 20 ++++++++++++++----- 3 files changed, 86 insertions(+), 5 deletions(-) create mode 100644 NOTICES.md diff --git a/LICENSE b/LICENSE index 2cf9f45..052ff1c 100644 --- a/LICENSE +++ b/LICENSE @@ -2,6 +2,11 @@ BSD 2-Clause License Copyright 2026 David Czihak +This license applies to the source code of this extension. Bundled image +and icon assets, and the vendored Tree-sitter Zig grammar, are covered +by separate licenses; see NOTICES.md for details. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/NOTICES.md b/NOTICES.md new file mode 100644 index 0000000..3ee7700 --- /dev/null +++ b/NOTICES.md @@ -0,0 +1,66 @@ +# Third-Party Notices + +This Nova extension bundles material under licenses different from the +BSD 2-Clause license that covers its own source code (see `LICENSE`). +Each section below identifies the affected files and the license that +governs them. + +--- + +## Zig Software Foundation logo — CC BY-SA 4.0 + +The following image and icon assets are derivatives of the Zig +programming language logo, which is the work of the +[Zig Software Foundation](https://ziglang.org) and is licensed under +[Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/): + +- `extension.png` +- `extension@2x.png` +- `Images/zig-debug/zig-debug.png` +- `Images/zig-debug/zig-debug@2x.png` +- `Resources/Zig@32px.af` + +These assets remain licensed under CC BY-SA 4.0; redistribution must +retain that license and provide attribution to the Zig Software +Foundation. They are *not* covered by the BSD 2-Clause license that +applies to the rest of this repository. + +The `@2x` variants and the `.af` icon were rasterised and pixel-aligned +from the original logo; no other changes were made. + +--- + +## Vendored tree-sitter-zig grammar — MIT + +The compiled parser shipped at `Syntaxes/libtree-sitter-zig.dylib` is +built from the Tree-sitter grammar at +[github.com/tree-sitter-grammars/tree-sitter-zig](https://github.com/tree-sitter-grammars/tree-sitter-zig). +The pinned upstream commit is recorded in +`vendor/tree-sitter-zig/VENDORING.md`. + +The grammar is distributed under the MIT License: + +> The MIT License (MIT) +> +> Copyright (c) 2024 Amaan Qureshi +> +> Permission is hereby granted, free of charge, to any person obtaining a copy +> of this software and associated documentation files (the "Software"), to deal +> in the Software without restriction, including without limitation the rights +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom the Software is +> furnished to do so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in all +> copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +> SOFTWARE. + +The unmodified upstream copy of this license is preserved at +`vendor/tree-sitter-zig/LICENSE`. diff --git a/README.md b/README.md index 46218d9..16c6443 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,18 @@ Validate the extension bundle: /Applications/Nova.app/Contents/SharedSupport/nova extension validate . ``` -## Attributions - -The Zig logo is the work of the [Zig Software Foundation](https://ziglang.org) and is licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). The zig-debug@2x.png is a derivative of the original logo, improving pixel alignment at 32px size. - -The Tree-sitter grammar for Zig is sourced from [github.com/tree-sitter-grammars/tree-sitter-zig](https://github.com/tree-sitter-grammars/tree-sitter-zig). +## License + +The extension's source code is licensed under the BSD 2-Clause License +(see [`LICENSE`](LICENSE)). Bundled assets and vendored third-party +code carry their own licenses, documented in +[`NOTICES.md`](NOTICES.md): + +- The Zig logo and the icon/image assets derived from it + (`extension.png`, `extension@2x.png`, `Images/zig-debug/*.png`, + `Resources/Zig@32px.af`) are the work of the + [Zig Software Foundation](https://ziglang.org) and remain licensed + under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). +- The Tree-sitter grammar for Zig is sourced from + [github.com/tree-sitter-grammars/tree-sitter-zig](https://github.com/tree-sitter-grammars/tree-sitter-zig) + and is distributed under the MIT License. -- cgit v1.3