Skip to content

Commit

Permalink
add license GPL-3.0-or-later, make project REUSE compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
erictapen committed Jun 30, 2023
1 parent e665aaa commit 549927d
Show file tree
Hide file tree
Showing 12 changed files with 294 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

result*
10 changes: 10 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: typst-invoice
Upstream-Contact: Kerstin Humm <[email protected]>
Source: https://github.com/erictapen/typst-invoice

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
232 changes: 232 additions & 0 deletions LICENSES/GPL-3.0-or-later.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

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.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>
SPDX-License-Identifier: GPL-3.0-or-later
-->

# Typst invoice template

![](preview.png)
Expand Down
3 changes: 3 additions & 0 deletions flake.lock.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>

SPDX-License-Identifier: GPL-3.0-or-later
13 changes: 12 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

{
description = "Typst template for invoices";

Expand All @@ -16,8 +20,15 @@
${pkgs.typst}/bin/typst compile invoice.typ $out/invoice.pdf
'';

checks.reuse = pkgs.runCommand "reuse-check" { } ''
${pkgs.reuse}/bin/reuse --root ${self} lint && touch $out
'';

devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ typst ];
buildInputs = with pkgs; [
typst
reuse
];
};

});
Expand Down
3 changes: 3 additions & 0 deletions invoice.pdf.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>

SPDX-License-Identifier: GPL-3.0-or-later
4 changes: 4 additions & 0 deletions invoice.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

invoice-nr = "2023-001"
date = "24.05.2023"
vat = 0.19
Expand Down
4 changes: 4 additions & 0 deletions invoice.typ
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#import "tablex.typ": gridx, hlinex

#set text(lang: "de", region: "DE")
Expand Down
3 changes: 3 additions & 0 deletions preview.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Kerstin Humm <[email protected]>

SPDX-License-Identifier: GPL-3.0-or-later
4 changes: 4 additions & 0 deletions tablex.typ
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2023 PgBiel <[email protected]>
//
// SPDX-License-Identifier: MIT

// Welcome to tablex!
// Feel free to contribute with any features you think are missing.

Expand Down

0 comments on commit 549927d

Please sign in to comment.