diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-02 13:44:56 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-02 13:44:56 +0200 |
commit | 10948ed35a04d6cbe05819acf9903e5e7395375b (patch) | |
tree | e5b57b6ef3aec62686d087969d9ed441209f7751 /templates/shell | |
parent | fix(templates.nix): Adjust to the new `init` script (diff) | |
download | flake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.tar.gz flake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.zip |
feat(treewide): Also remove hard-coded values in the `templates/` dir
Diffstat (limited to 'templates/shell')
-rw-r--r-- | templates/shell/flake.nix | 4 | ||||
-rwxr-xr-x | templates/shell/src/main.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/shell/flake.nix b/templates/shell/flake.nix index 7f3cfd2..56aa9d1 100644 --- a/templates/shell/flake.nix +++ b/templates/shell/flake.nix @@ -60,8 +60,8 @@ treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;}; # This version is set automatically on `cog bump --auto`; - version = "v0.1.0"; # GUIDING VERSION STRING - pname = "TODO"; + version = "v%INIT_APPLICATION_VERSION"; # GUIDING VERSION STRING + pname = "%INIT_APPLICATION_NAME"; build = shell_library.lib.${system}.writeShellScript { inherit version; diff --git a/templates/shell/src/main.sh b/templates/shell/src/main.sh index 4c4c836..cf4e438 100755 --- a/templates/shell/src/main.sh +++ b/templates/shell/src/main.sh @@ -5,9 +5,9 @@ SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH # Both are used in `version` # shellcheck disable=2034 -AUTHORS="Benedikt Peetz" +AUTHORS="%INIT_AUTHOR_NAME" # shellcheck disable=2034 -YEARS="2024" +YEARS="%INIT_YEAR" printf "Hello World!\n\n" |