1PORTNAME=	nushell
2DISTVERSION=	0.82.0
3CATEGORIES=	shells
4
5MAINTAINER=	ports@MidnightBSD.org
6COMMENT=	New type of shell
7WWW=		https://www.nushell.sh/
8
9LICENSE=	mit
10LICENSE_FILE=	${WRKSRC}/LICENSE
11
12USES=		cargo localbase ssl
13
14USE_GITHUB=	yes
15
16CARGO_CRATES=	Inflector-0.11.4 \
17		adler-1.0.2 \
18		ahash-0.7.6 \
19		ahash-0.8.3 \
20		aho-corasick-1.0.1 \
21		alloc-no-stdlib-2.0.4 \
22		alloc-stdlib-0.2.2 \
23		alphanumeric-sort-1.5.1 \
24		android_system_properties-0.1.5 \
25		anes-0.1.6 \
26		ansi-str-0.7.2 \
27		ansi-str-0.8.0 \
28		ansitok-0.2.0 \
29		anstyle-1.0.0 \
30		argminmax-0.6.1 \
31		array-init-cursor-0.2.0 \
32		arrayvec-0.5.2 \
33		arrayvec-0.7.2 \
34		arrow-format-0.8.1 \
35		arrow2-0.17.2 \
36		assert-json-diff-2.0.2 \
37		assert_cmd-2.0.11 \
38		async-stream-0.3.5 \
39		async-stream-impl-0.3.5 \
40		async-trait-0.1.68 \
41		atoi-2.0.0 \
42		atomic-polyfill-0.1.11 \
43		atty-0.2.14 \
44		autocfg-1.1.0 \
45		base64-0.13.1 \
46		base64-0.21.2 \
47		bincode-1.3.3 \
48		bindgen-0.64.0 \
49		bit-set-0.5.3 \
50		bit-vec-0.6.3 \
51		bitflags-1.3.2 \
52		bitflags-2.3.1 \
53		block-buffer-0.10.4 \
54		brotli-3.3.4 \
55		brotli-decompressor-2.3.4 \
56		brownstone-3.0.0 \
57		bstr-0.2.17 \
58		bstr-1.5.0 \
59		bumpalo-3.13.0 \
60		byte-unit-4.0.19 \
61		bytecount-0.6.3 \
62		bytemuck-1.13.1 \
63		bytemuck_derive-1.4.1 \
64		byteorder-1.4.3 \
65		bytes-1.4.0 \
66		bytesize-1.2.0 \
67		calamine-0.19.1 \
68		cassowary-0.3.0 \
69		cast-0.3.0 \
70		cc-1.0.79 \
71		cexpr-0.6.0 \
72		cfg-if-0.1.10 \
73		cfg-if-1.0.0 \
74		chrono-0.4.24 \
75		chrono-humanize-0.2.2 \
76		chrono-tz-0.8.2 \
77		chrono-tz-build-0.1.0 \
78		ciborium-0.2.1 \
79		ciborium-io-0.2.1 \
80		ciborium-ll-0.2.1 \
81		clang-sys-1.6.1 \
82		clap-4.3.2 \
83		clap_builder-4.3.1 \
84		clap_lex-0.5.0 \
85		codepage-0.1.1 \
86		colored-2.0.0 \
87		comfy-table-6.1.4 \
88		console-0.15.7 \
89		const-random-0.1.15 \
90		const-random-macro-0.1.15 \
91		const_format-0.2.30 \
92		const_format_proc_macros-0.2.29 \
93		convert_case-0.4.0 \
94		core-foundation-0.9.3 \
95		core-foundation-sys-0.8.4 \
96		cpufeatures-0.2.7 \
97		crc32fast-1.3.2 \
98		criterion-0.5.1 \
99		criterion-plot-0.5.0 \
100		critical-section-1.1.1 \
101		crossbeam-channel-0.5.8 \
102		crossbeam-deque-0.8.3 \
103		crossbeam-epoch-0.9.14 \
104		crossbeam-utils-0.8.15 \
105		crossterm-0.25.0 \
106		crossterm-0.26.1 \
107		crossterm_winapi-0.9.0 \
108		crunchy-0.2.2 \
109		crypto-common-0.1.6 \
110		cssparser-0.29.6 \
111		cssparser-macros-0.6.0 \
112		csv-1.2.1 \
113		csv-core-0.1.10 \
114		ctor-0.1.26 \
115		ctrlc-3.4.0 \
116		dashmap-5.4.0 \
117		derive_more-0.99.17 \
118		dialoguer-0.10.4 \
119		diff-0.1.13 \
120		difflib-0.4.0 \
121		digest-0.10.7 \
122		dirs-next-2.0.0 \
123		dirs-sys-next-0.1.2 \
124		dlv-list-0.5.0 \
125		doc-comment-0.3.3 \
126		dtoa-0.4.8 \
127		dtoa-short-0.3.3 \
128		dtparse-1.5.0 \
129		dyn-clone-1.0.11 \
130		ego-tree-0.6.2 \
131		either-1.8.1 \
132		eml-parser-0.1.3 \
133		encode_unicode-0.3.6 \
134		encoding_rs-0.8.32 \
135		enum_dispatch-0.3.11 \
136		env_logger-0.8.4 \
137		erased-serde-0.3.25 \
138		errno-0.2.8 \
139		errno-0.3.1 \
140		errno-dragonfly-0.1.2 \
141		ethnum-1.3.2 \
142		fallible-iterator-0.2.0 \
143		fallible-streaming-iterator-0.1.9 \
144		fancy-regex-0.11.0 \
145		fast-float-0.2.0 \
146		fastrand-1.9.0 \
147		fd-lock-3.0.12 \
148		filesize-0.2.0 \
149		filetime-0.2.21 \
150		flate2-1.0.26 \
151		float-cmp-0.9.0 \
152		fnv-1.0.7 \
153		foreign-types-0.3.2 \
154		foreign-types-shared-0.1.1 \
155		foreign_vec-0.1.0 \
156		form_urlencoded-1.1.0 \
157		fs_extra-1.3.0 \
158		fsevent-0.4.0 \
159		fsevent-sys-2.0.1 \
160		fuchsia-zircon-0.3.3 \
161		fuchsia-zircon-sys-0.3.3 \
162		futf-0.1.5 \
163		futures-0.3.28 \
164		futures-channel-0.3.28 \
165		futures-core-0.3.28 \
166		futures-executor-0.3.28 \
167		futures-io-0.3.28 \
168		futures-macro-0.3.28 \
169		futures-sink-0.3.28 \
170		futures-task-0.3.28 \
171		futures-util-0.3.28 \
172		fuzzy-matcher-0.3.7 \
173		fxhash-0.2.1 \
174		generic-array-0.14.7 \
175		getrandom-0.1.16 \
176		getrandom-0.2.9 \
177		getset-0.1.2 \
178		ghost-0.1.9 \
179		git2-0.17.1 \
180		gjson-0.8.1 \
181		glob-0.3.1 \
182		h2-0.3.19 \
183		half-1.8.2 \
184		halfbrown-0.2.2 \
185		hamcrest2-0.3.0 \
186		hash32-0.2.1 \
187		hash_hasher-2.0.3 \
188		hashbrown-0.12.3 \
189		hashbrown-0.13.2 \
190		hashlink-0.8.2 \
191		heapless-0.7.16 \
192		heck-0.4.1 \
193		hermit-abi-0.1.19 \
194		hermit-abi-0.2.6 \
195		hermit-abi-0.3.1 \
196		hex-0.4.3 \
197		home-0.5.5 \
198		html5ever-0.26.0 \
199		htmlescape-0.3.1 \
200		http-0.2.9 \
201		http-body-0.4.5 \
202		httparse-1.8.0 \
203		httpdate-1.0.2 \
204		hyper-0.14.26 \
205		iana-time-zone-0.1.56 \
206		iana-time-zone-haiku-0.1.2 \
207		ical-0.8.0 \
208		idna-0.3.0 \
209		indent_write-2.2.0 \
210		indexmap-1.9.3 \
211		indicatif-0.17.3 \
212		inotify-0.7.1 \
213		inotify-sys-0.1.5 \
214		instant-0.1.12 \
215		inventory-0.3.6 \
216		io-lifetimes-1.0.11 \
217		iovec-0.1.4 \
218		is-docker-0.2.0 \
219		is-root-0.1.2 \
220		is-terminal-0.4.7 \
221		is-wsl-0.4.0 \
222		is_ci-1.1.1 \
223		is_debug-1.0.1 \
224		is_executable-1.0.1 \
225		itertools-0.10.5 \
226		itoa-1.0.6 \
227		jobserver-0.1.26 \
228		joinery-2.1.0 \
229		js-sys-0.3.63 \
230		kernel32-sys-0.2.2 \
231		lazy_static-1.4.0 \
232		lazycell-1.3.0 \
233		lexical-6.1.1 \
234		lexical-core-0.8.5 \
235		lexical-parse-float-0.8.5 \
236		lexical-parse-integer-0.8.6 \
237		lexical-util-0.8.5 \
238		lexical-write-float-0.8.5 \
239		lexical-write-integer-0.8.5 \
240		libc-0.2.144 \
241		libgit2-sys-0.15.1+1.6.4 \
242		libloading-0.7.4 \
243		libm-0.2.7 \
244		libmimalloc-sys-0.1.33 \
245		libproc-0.13.0 \
246		libsqlite3-sys-0.26.0 \
247		libssh2-sys-0.3.0 \
248		libz-sys-1.1.9 \
249		linked-hash-map-0.5.6 \
250		linux-raw-sys-0.1.4 \
251		linux-raw-sys-0.3.8 \
252		lock_api-0.4.9 \
253		log-0.4.17 \
254		lru-0.10.0 \
255		lscolors-0.14.0 \
256		lz4-1.24.0 \
257		lz4-sys-1.9.4 \
258		mac-0.1.1 \
259		mach2-0.4.1 \
260		malloc_buf-0.0.6 \
261		markup5ever-0.11.0 \
262		matches-0.1.10 \
263		md-5-0.10.5 \
264		memchr-2.5.0 \
265		memmap2-0.5.10 \
266		memoffset-0.8.0 \
267		miette-5.9.0 \
268		miette-derive-5.9.0 \
269		mimalloc-0.1.37 \
270		mime-0.3.17 \
271		mime_guess-2.0.4 \
272		minimal-lexical-0.2.1 \
273		miniz_oxide-0.7.1 \
274		mio-0.6.23 \
275		mio-0.8.6 \
276		mio-extras-2.0.6 \
277		miow-0.2.2 \
278		mockito-1.1.0 \
279		multiversion-0.7.2 \
280		multiversion-macros-0.7.2 \
281		native-tls-0.2.11 \
282		net2-0.2.38 \
283		new_debug_unreachable-1.0.4 \
284		nix-0.26.2 \
285		nodrop-0.1.14 \
286		nom-7.1.3 \
287		nom-supreme-0.8.0 \
288		notify-4.0.17 \
289		now-0.1.3 \
290		ntapi-0.4.1 \
291		nu-ansi-term-0.47.0 \
292		num-0.2.1 \
293		num-0.4.0 \
294		num-bigint-0.2.6 \
295		num-bigint-0.4.3 \
296		num-complex-0.2.4 \
297		num-complex-0.4.3 \
298		num-format-0.4.4 \
299		num-integer-0.1.45 \
300		num-iter-0.1.43 \
301		num-rational-0.2.4 \
302		num-rational-0.4.1 \
303		num-traits-0.2.15 \
304		num_cpus-1.15.0 \
305		num_threads-0.1.6 \
306		number_prefix-0.4.0 \
307		objc-0.2.7 \
308		omnipath-0.1.6 \
309		once_cell-1.18.0 \
310		oorandom-11.1.3 \
311		open-4.1.0 \
312		openssl-0.10.55 \
313		openssl-macros-0.1.1 \
314		openssl-probe-0.1.5 \
315		openssl-src-111.25.3+1.1.1t \
316		openssl-sys-0.9.90 \
317		ordered-multimap-0.6.0 \
318		os_pipe-1.1.4 \
319		output_vt100-0.1.3 \
320		owo-colors-3.5.0 \
321		papergrid-0.9.0 \
322		parking_lot-0.11.2 \
323		parking_lot-0.12.1 \
324		parking_lot_core-0.8.6 \
325		parking_lot_core-0.9.7 \
326		parquet-format-safe-0.2.4 \
327		parquet2-0.17.2 \
328		parse-zoneinfo-0.3.0 \
329		paste-1.0.12 \
330		pathdiff-0.2.1 \
331		peeking_take_while-0.1.2 \
332		percent-encoding-2.3.0 \
333		peresil-0.3.0 \
334		phf-0.8.0 \
335		phf-0.10.1 \
336		phf-0.11.1 \
337		phf_codegen-0.8.0 \
338		phf_codegen-0.10.0 \
339		phf_codegen-0.11.1 \
340		phf_generator-0.8.0 \
341		phf_generator-0.10.0 \
342		phf_generator-0.11.1 \
343		phf_macros-0.10.0 \
344		phf_shared-0.8.0 \
345		phf_shared-0.10.0 \
346		phf_shared-0.11.1 \
347		pin-project-lite-0.2.9 \
348		pin-utils-0.1.0 \
349		pkg-config-0.3.27 \
350		planus-0.3.1 \
351		plotters-0.3.4 \
352		plotters-backend-0.3.4 \
353		plotters-svg-0.3.3 \
354		polars-0.30.0 \
355		polars-arrow-0.30.0 \
356		polars-core-0.30.0 \
357		polars-error-0.30.0 \
358		polars-io-0.30.0 \
359		polars-json-0.30.0 \
360		polars-lazy-0.30.0 \
361		polars-ops-0.30.0 \
362		polars-pipe-0.30.0 \
363		polars-plan-0.30.0 \
364		polars-row-0.30.0 \
365		polars-sql-0.30.0 \
366		polars-time-0.30.0 \
367		polars-utils-0.30.0 \
368		pori-0.0.0 \
369		portable-atomic-0.3.20 \
370		portable-atomic-1.3.2 \
371		powierza-coefficient-1.0.2 \
372		ppv-lite86-0.2.17 \
373		precomputed-hash-0.1.1 \
374		predicates-3.0.3 \
375		predicates-core-1.0.6 \
376		predicates-tree-1.0.9 \
377		pretty_assertions-1.3.0 \
378		print-positions-0.6.1 \
379		proc-macro-error-1.0.4 \
380		proc-macro-error-attr-1.0.4 \
381		proc-macro-hack-0.5.20+deprecated \
382		proc-macro2-1.0.59 \
383		procfs-0.15.1 \
384		pure-rust-locales-0.5.6 \
385		pwd-1.4.0 \
386		quick-error-1.2.3 \
387		quick-xml-0.25.0 \
388		quick-xml-0.29.0 \
389		quickcheck-1.0.3 \
390		quickcheck_macros-1.0.0 \
391		quote-1.0.28 \
392		rand-0.7.3 \
393		rand-0.8.5 \
394		rand_chacha-0.2.2 \
395		rand_chacha-0.3.1 \
396		rand_core-0.5.1 \
397		rand_core-0.6.4 \
398		rand_distr-0.4.3 \
399		rand_hc-0.2.0 \
400		rand_pcg-0.2.1 \
401		ratatui-0.20.1 \
402		rayon-1.7.0 \
403		rayon-core-1.11.0 \
404		redox_syscall-0.2.16 \
405		redox_syscall-0.3.5 \
406		redox_users-0.4.3 \
407		reedline-0.21.0 \
408		regex-1.8.3 \
409		regex-automata-0.1.10 \
410		regex-syntax-0.6.29 \
411		regex-syntax-0.7.2 \
412		rmp-0.8.11 \
413		rmp-serde-1.1.1 \
414		roxmltree-0.18.0 \
415		rstest-0.17.0 \
416		rstest_macros-0.17.0 \
417		rusqlite-0.29.0 \
418		rust-embed-6.6.1 \
419		rust-embed-impl-6.5.0 \
420		rust-embed-utils-7.5.0 \
421		rust-ini-0.19.0 \
422		rust_decimal-1.29.1 \
423		rustc-hash-1.1.0 \
424		rustc_version-0.4.0 \
425		rustix-0.36.14 \
426		rustix-0.37.19 \
427		rustversion-1.0.12 \
428		ryu-1.0.13 \
429		same-file-1.0.6 \
430		schannel-0.1.21 \
431		scopeguard-1.1.0 \
432		scraper-0.16.0 \
433		security-framework-2.9.1 \
434		security-framework-sys-2.9.0 \
435		selectors-0.24.0 \
436		semver-1.0.17 \
437		seq-macro-0.3.3 \
438		serde-1.0.163 \
439		serde_derive-1.0.163 \
440		serde_json-1.0.96 \
441		serde_spanned-0.6.2 \
442		serde_urlencoded-0.7.1 \
443		serde_yaml-0.9.21 \
444		serial_test-2.0.0 \
445		serial_test_derive-2.0.0 \
446		servo_arc-0.2.0 \
447		sha2-0.10.6 \
448		shadow-rs-0.23.0 \
449		shell-words-1.1.0 \
450		shlex-1.1.0 \
451		signal-hook-0.3.15 \
452		signal-hook-mio-0.2.3 \
453		signal-hook-registry-1.4.1 \
454		simd-json-0.10.3 \
455		simdutf8-0.1.4 \
456		similar-2.2.1 \
457		simplelog-0.12.1 \
458		siphasher-0.3.10 \
459		slab-0.4.8 \
460		smallvec-1.10.0 \
461		smartstring-1.0.1 \
462		smawk-0.3.1 \
463		snap-1.1.0 \
464		socket2-0.4.9 \
465		spin-0.9.8 \
466		sqlparser-0.33.0 \
467		sqlparser-0.34.0 \
468		stable_deref_trait-1.2.0 \
469		static_assertions-1.1.0 \
470		streaming-decompression-0.1.2 \
471		streaming-iterator-0.1.9 \
472		strength_reduce-0.2.4 \
473		string_cache-0.8.7 \
474		string_cache_codegen-0.5.2 \
475		strip-ansi-escapes-0.1.1 \
476		strum-0.24.1 \
477		strum_macros-0.24.3 \
478		supports-color-2.0.0 \
479		supports-hyperlinks-2.1.0 \
480		supports-unicode-2.0.0 \
481		sxd-document-0.3.2 \
482		sxd-xpath-0.4.2 \
483		syn-1.0.109 \
484		syn-2.0.17 \
485		sys-locale-0.3.0 \
486		sysinfo-0.29.0 \
487		tabled-0.12.2 \
488		target-features-0.1.4 \
489		tempfile-3.5.0 \
490		tendril-0.4.3 \
491		termcolor-1.1.3 \
492		terminal_size-0.1.17 \
493		terminal_size-0.2.6 \
494		termtree-0.4.1 \
495		textwrap-0.15.2 \
496		thiserror-1.0.40 \
497		thiserror-impl-1.0.40 \
498		thread_local-1.1.7 \
499		time-0.1.45 \
500		time-0.3.21 \
501		time-core-0.1.1 \
502		time-macros-0.2.9 \
503		tiny-keccak-2.0.2 \
504		tinytemplate-1.2.1 \
505		tinyvec-1.6.0 \
506		tinyvec_macros-0.1.1 \
507		titlecase-2.2.1 \
508		tokio-1.28.1 \
509		tokio-macros-2.1.0 \
510		tokio-util-0.7.8 \
511		toml-0.7.4 \
512		toml_datetime-0.6.2 \
513		toml_edit-0.19.10 \
514		tower-service-0.3.2 \
515		tracing-0.1.37 \
516		tracing-core-0.1.31 \
517		trash-3.0.2 \
518		try-lock-0.2.4 \
519		typed-arena-1.7.0 \
520		typenum-1.16.0 \
521		typetag-0.2.8 \
522		typetag-impl-0.2.8 \
523		umask-2.1.0 \
524		unicase-2.6.0 \
525		unicode-bidi-0.3.13 \
526		unicode-ident-1.0.9 \
527		unicode-linebreak-0.1.4 \
528		unicode-normalization-0.1.22 \
529		unicode-segmentation-1.10.1 \
530		unicode-width-0.1.10 \
531		unicode-xid-0.2.4 \
532		unsafe-libyaml-0.2.8 \
533		ureq-2.6.2 \
534		url-2.3.1 \
535		users-0.10.0 \
536		users-0.11.0 \
537		utf-8-0.7.6 \
538		utf8-width-0.1.6 \
539		utf8parse-0.2.1 \
540		uuid-1.3.3 \
541		value-trait-0.6.1 \
542		vcpkg-0.2.15 \
543		version_check-0.9.4 \
544		vte-0.10.1 \
545		vte_generate_state_changes-0.1.1 \
546		wait-timeout-0.2.0 \
547		walkdir-2.3.3 \
548		want-0.3.0 \
549		wasi-0.9.0+wasi-snapshot-preview1 \
550		wasi-0.10.0+wasi-snapshot-preview1 \
551		wasi-0.11.0+wasi-snapshot-preview1 \
552		wasm-bindgen-0.2.86 \
553		wasm-bindgen-backend-0.2.86 \
554		wasm-bindgen-futures-0.4.36 \
555		wasm-bindgen-macro-0.2.86 \
556		wasm-bindgen-macro-support-0.2.86 \
557		wasm-bindgen-shared-0.2.86 \
558		wasm-timer-0.2.5 \
559		wax-0.5.0 \
560		web-sys-0.3.63 \
561		which-4.4.0 \
562		winapi-0.2.8 \
563		winapi-0.3.9 \
564		winapi-build-0.1.1 \
565		winapi-i686-pc-windows-gnu-0.4.0 \
566		winapi-util-0.1.5 \
567		winapi-x86_64-pc-windows-gnu-0.4.0 \
568		windows-0.44.0 \
569		windows-0.48.0 \
570		windows-sys-0.42.0 \
571		windows-sys-0.45.0 \
572		windows-sys-0.48.0 \
573		windows-targets-0.42.2 \
574		windows-targets-0.48.0 \
575		windows_aarch64_gnullvm-0.42.2 \
576		windows_aarch64_gnullvm-0.48.0 \
577		windows_aarch64_msvc-0.42.2 \
578		windows_aarch64_msvc-0.48.0 \
579		windows_i686_gnu-0.42.2 \
580		windows_i686_gnu-0.48.0 \
581		windows_i686_msvc-0.42.2 \
582		windows_i686_msvc-0.48.0 \
583		windows_x86_64_gnu-0.42.2 \
584		windows_x86_64_gnu-0.48.0 \
585		windows_x86_64_gnullvm-0.42.2 \
586		windows_x86_64_gnullvm-0.48.0 \
587		windows_x86_64_msvc-0.42.2 \
588		windows_x86_64_msvc-0.48.0 \
589		winnow-0.4.6 \
590		winreg-0.50.0 \
591		winresource-0.1.15 \
592		ws2_32-sys-0.2.1 \
593		xmlparser-0.13.5 \
594		xxhash-rust-0.8.6 \
595		yansi-0.5.1 \
596		zip-0.6.6 \
597		zstd-0.12.3+zstd.1.5.2 \
598		zstd-safe-6.0.5+zstd.1.5.4 \
599		zstd-sys-2.0.8+zstd.1.5.5
600
601OPENSSLINC=	/usr/include
602OPENSSLLIB=	/usr/lib
603
604OPTIONS_DEFINE=		DATAFRAME
605
606DATAFRAME_DESC=		Include the dataframe feature
607DATAFRAME_VARS=		CARGO_BUILD_ARGS+=--features=dataframe
608DATAFRAME_BROKEN=	see https://github.com/nushell/nushell/issues/7665
609
610# magus
611NO_TEST=	yes
612
613post-install:
614	@${STRIP_CMD} ${PREFIX}/bin/nu
615
616#do-test:
617#	@${CARGO_CARGO_RUN} test --workspace
618
619.include <bsd.port.mk>
620