query
On this page

getVersion

lib.strings.getVersion

Docs pulled from | This Revision | about 1 hour ago


This function takes an argument that's either a derivation or a derivation's "name" attribute and extracts the version part from that argument.

Examples

getVersion usage example

getVersion "youtube-dl-2016.01.01"
=> "2016.01.01"
getVersion pkgs.youtube-dl
=> "2016.01.01"

Noogle also knows

Aliases