Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::RegisterLibraryVersion Struct Reference

#include <library-versions.hh>

Public Member Functions

 RegisterLibraryVersion (std::string name, fun< std::string()> getVersion)

Detailed Description

Registers the version of a third-party dependency so that it is reported by getLinkedLibraryVersions().

Example registration:

static RegisterLibraryVersion rLibs{"libfoo", [] { return foo_version(); }};
Parameters
namethe name of the library
getVersioninvoked lazily by getLinkedLibraryVersions(), not during static initialization, so any failure it might have is confined to the caller that actually needs the versions.

The documentation for this struct was generated from the following files: