query
On this page

getName

lib.getName

Docs pulled from | This Revision | about 1 hour 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"
(lib.strings.getName)

Noogle detected

Aliases