393e966194
This makes sure the hook will catch cases where the --version or --help output prints the installation dir or something alike that includes the builtins.storeDir, and later on the `${pname}-${version}` string. Could have avoided #334245 which was a fixup for #330456.
16 lines
299 B
Nix
16 lines
299 B
Nix
{
|
|
lib,
|
|
makeSetupHook,
|
|
}:
|
|
|
|
makeSetupHook {
|
|
name = "version-check-hook";
|
|
substitutions = {
|
|
storeDir = builtins.storeDir;
|
|
};
|
|
meta = {
|
|
description = "Lookup for $version in the output of --help and --version";
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
};
|
|
} ./hook.sh
|