···126126 lib.warn "getLicenseFromSpdxId: No license matches the given SPDX ID: ${licstr}"
127127 { shortName = licstr; }
128128 );
129129+130130+ /* Get the path to the main program of a derivation with either
131131+ meta.mainProgram or pname or name
132132+133133+ Type: getExe :: derivation -> string
134134+135135+ Example:
136136+ getExe pkgs.hello
137137+ => "/nix/store/g124820p9hlv4lj8qplzxw1c44dxaw1k-hello-2.12/bin/hello"
138138+ getExe pkgs.mustache-go
139139+ => "/nix/store/am9ml4f4ywvivxnkiaqwr0hyxka1xjsf-mustache-go-1.3.0/bin/mustache"
140140+ */
141141+ getExe = x:
142142+ "${lib.getBin x}/bin/${x.meta.mainProgram or (lib.getName x)}";
129143}