Skip to content

Commit

Permalink
feat: provide a stand-alone installation runnable for every hook (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jul 29, 2022
1 parent 3a5cb34 commit 8aa25d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/make.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ let

# Builds the shell hook for managing the generated file.
inherit (lib.makeHook { inherit configFile name hookConfig; }) shellHook shellScript;

# Provides a stand-alone `nix run`-runnable to install this Nixago file
install = pkgs.writeShellScriptBin "nixago_shell_hook" shellHook;
in
{
inherit configFile shellHook shellScript;
inherit configFile shellHook shellScript install;
}

0 comments on commit 8aa25d6

Please sign in to comment.