From 10948ed35a04d6cbe05819acf9903e5e7395375b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 2 Apr 2024 13:44:56 +0200 Subject: feat(treewide): Also remove hard-coded values in the `templates/` dir --- templates/awk/flake.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'templates/awk') 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; -- cgit 1.4.1