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-04-02 13:44:56 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 13:44:56 +0200
commit10948ed35a04d6cbe05819acf9903e5e7395375b (patch)
treee5b57b6ef3aec62686d087969d9ed441209f7751 /templates/awk/flake.nix
parentfix(templates.nix): Adjust to the new `init` script (diff)
downloadflake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.tar.gz
flake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.zip
feat(treewide): Also remove hard-coded values in the `templates/` dir
Diffstat (limited to 'templates/awk/flake.nix')
-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;