about summary refs log tree commit diff stats
path: root/templates/awk/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/awk/flake.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/awk/flake.nix b/templates/awk/flake.nix
index 8dc59bf..4f61840 100644
--- a/templates/awk/flake.nix
+++ b/templates/awk/flake.nix
@@ -49,10 +49,9 @@
       treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;};
 
       # This version is set automatically on `cog bump --auto`;
-      version = "v1.0.0"; # GUIDING VERSION STRING
+      version = "v%INIT_APPLICATION_VERSION"; # GUIDING VERSION STRING
 
-      man_number = "1"; # TODO change if necessary
-      pname = "TODO";
+      pname = "%INIT_APPLICATION_NAME";
 
       build = pkgs.stdenv.mkDerivation {
         inherit version pname;
@@ -64,11 +63,11 @@
 
         buildPhase = ''
           mkdir --parents $out/docs;
-          pandoc ./docs/${pname}.${man_number}.md -s -t man  > $out/docs/${pname}.${man_number}
+          pandoc ./docs/${pname}.1.md -s -t man  > $out/docs/${pname}.1
         '';
 
         installPhase = ''
-          install -D $out/docs/${pname}.${man_number}  $out/share/man/man${man_number}/${pname};
+          install -D $out/docs/${pname}.1  $out/share/man/man1/${pname};
 
           install -D ./src/${pname}.awk $out/bin/${pname}.awk;