getName
lib.getName
Docs pulled from | This Revision | 4 days ago
This function takes an argument x that's either a derivation or a
derivation's "name" attribute and extracts the name part from that
argument.
Inputs
x- 1. Function argument
Type
getName :: String | Derivation -> String
Examples
lib.strings.getName usage example
getName "youtube-dl-2016.01.01"
=> "youtube-dl"
getName pkgs.youtube-dl
=> "youtube-dl"