nixpkgs/pkgs/by-name/ve/versionCheckHook/package.nix
Doron Behar 393e966194 versionCheckHook: ignore echoed store paths
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.
2024-08-17 20:10:54 +03:00

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