about summary refs log tree commit diff stats
path: root/templates/awk/flake.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 23:44:59 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 00:00:07 +0200
commit2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c (patch)
treed9894056cafdf83fd7edb7b785ac6076cdc177cc /templates/awk/flake.nix
parentrefactor(flake): Move some nix code out of flake.nix (diff)
downloadflake-templates-2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c.tar.gz
flake-templates-2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c.zip
fix(templates): Update already done templates with improvements from new ones
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
         ];
       };
     });