cpeFullVersionWithVendor
lib.meta.cpeFullVersionWithVendor
Docs pulled from | This Revision | about 1 hour ago
Generate CPE parts from inputs. Copies vendor and version to the output, and sets update to *.
Inputs
vendor-
package's vendor
version-
package's version
Type
cpeFullVersionWithVendor :: String -> String -> { update :: String; vendor :: String; version :: String; }
Examples
lib.meta.cpeFullVersionWithVendor usage example
lib.meta.cpeFullVersionWithVendor "gnu" "1.2.3"
=> {
vendor = "gnu";
version = "1.2.3";
update = "*";
}
lib.meta.cpeFullVersionWithVendor usage in derivations
mkDerivation rec {
version = "1.2.3";
# ...
meta = {
# ...
identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "gnu" version;
};
}
Noogle detected
Implementation
The following is the current implementation of this function.
cpeFullVersionWithVendor = vendor: version: {
inherit vendor version;
update = "*";
};