about summary refs log tree commit diff stats
path: root/templates/awk
diff options
context:
space:
mode:
Diffstat (limited to 'templates/awk')
-rw-r--r--templates/awk/.envrc2
-rw-r--r--templates/awk/.licensure.yml11
-rw-r--r--templates/awk/cog.toml4
-rw-r--r--templates/awk/flake.nix13
4 files changed, 21 insertions, 9 deletions
diff --git a/templates/awk/.envrc b/templates/awk/.envrc
index 96eca6b..3bc1085 100644
--- a/templates/awk/.envrc
+++ b/templates/awk/.envrc
@@ -1,6 +1,8 @@
 use flake || use nix
 watch_file flake.nix
 
+PATH_add ./scripts
+
 if on_git_branch; then
   echo && git status --short --branch &&
   echo && git fetch --verbose
diff --git a/templates/awk/.licensure.yml b/templates/awk/.licensure.yml
index e62adb0..e1f5a01 100644
--- a/templates/awk/.licensure.yml
+++ b/templates/awk/.licensure.yml
@@ -32,9 +32,9 @@ licenses:
     #   A list of authors who hold copyright over these files
     authors:
       # Provide either your full name or company name for copyright purposes
-      - name: TODO
+      - name: Benedikt Peetz
         # Optionally provide email for copyright purposes
-        email: "TODO"
+        email: "benedikt.peetz@b-peetz.de"
 
     #   The template that will be rendered to generate the header before
     #   comment characters are applied. Available variables are:
@@ -144,6 +144,13 @@ comments:
       comment_char: ";;;"
       trailing_lines: 1
 
+  - extensions:
+      - tex
+    commenter:
+      type: line
+      comment_char: "%"
+      trailing_lines: 1
+
   # The extension string "any" is special and so will match any file
   # extensions. Commenter configurations are always checked in the
   # order they are defined, so if any is used it should be the last
diff --git a/templates/awk/cog.toml b/templates/awk/cog.toml
index 677e20a..1157b91 100644
--- a/templates/awk/cog.toml
+++ b/templates/awk/cog.toml
@@ -2,13 +2,11 @@ tag_prefix = "v"
 branch_whitelist = ["main", "prime"]
 ignore_merge_commits = false
 
-[commit_types]
-
 pre_bump_hooks = [
   "nix flake check",                                                    # verify the project builds
   "./scripts/renew_copyright_header.sh",                                # update the license header in each file
   "nix fmt",                                                            # format
-  "flake_version_update --version v{{version}} --input-file flake.nix",
+  "flake_version_update --version v{{version}} --input-file flake.nix", # update the version in the flake.nix file
 ]
 post_bump_hooks = [
   "git push",
diff --git a/templates/awk/flake.nix b/templates/awk/flake.nix
index aeacf3b..144a17e 100644
--- a/templates/awk/flake.nix
+++ b/templates/awk/flake.nix
@@ -53,8 +53,8 @@
 
       man_number = "1"; # TODO change if necessary
       pname = "TODO";
-    in {
-      packages.default = pkgs.stdenv.mkDerivation {
+
+      build = pkgs.stdenv.mkDerivation {
         inherit version pname;
         src = ./.;
 
@@ -82,8 +82,12 @@
           chmod +x $out/bin/${pname}
         '';
       };
-
-      checks.formatting = treefmtEval.config.build.check self;
+    in {
+      packages.default = build;
+      checks = {
+        inherit build;
+        formatting = treefmtEval.config.build.check self;
+      };
       formatter = treefmtEval.config.build.wrapper;
 
       devShells.default = pkgs.mkShell {
@@ -92,6 +96,7 @@
           flake_version_update.packages."${system}".default
 
           gawk
+          licensure
         ];
       };
     });