about summary refs log tree commit diff stats
path: root/templates/awk/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'templates/awk/flake.nix')
-rw-r--r--templates/awk/flake.nix13
1 files changed, 9 insertions, 4 deletions
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
         ];
       };
     });