# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

RUST_MIN_VER="1.89.0"

CRATES="
	adler2@2.0.0
	arrayvec@0.7.6
	base64@0.22.1
	bitflags@1.3.2
	bytes@1.10.0
	cc@1.2.15
	cfg-if@1.0.0
	cpp_demangle@0.5.1
	crc32fast@1.3.2
	equivalent@1.0.1
	fallible-iterator@0.3.0
	flate2@1.0.35
	fnv@1.0.7
	getrandom@0.2.10
	gimli@0.31.1
	hashbrown@0.15.2
	http@1.2.0
	httparse@1.10.0
	iced-x86@1.19.0
	indexmap@2.6.0
	itoa@1.0.17
	lazy_static@1.4.0
	libc@0.2.170
	log@0.4.26
	md5@0.7.0
	memchr@2.7.6
	miniz_oxide@0.8.5
	once_cell@1.20.3
	percent-encoding@2.3.1
	ppv-lite86@0.2.17
	rand@0.8.5
	rand_chacha@0.3.1
	rand_core@0.6.4
	ring@0.17.11
	rustc-demangle@0.1.23
	rustls@0.23.23
	rustls-pemfile@2.2.0
	rustls-pki-types@1.11.0
	rustls-webpki@0.102.8
	shlex@1.3.0
	stable_deref_trait@1.2.0
	subtle@2.6.1
	tikv-jemalloc-sys@0.6.1+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7
	tikv-jemallocator@0.6.1
	unicode-segmentation@1.10.1
	unicode-width@0.1.10
	unicode-width@0.2.2
	untrusted@0.9.0
	ureq@3.0.6
	ureq-proto@0.3.0
	utf-8@0.7.6
	voracious_radix_sort@1.2.0
	vt100@0.16.2
	vte@0.15.0
	wasi@0.11.0+wasi-snapshot-preview1
	webpki-roots@0.26.8
	windows-sys@0.52.0
	windows-targets@0.52.6
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.52.6
	zeroize@1.8.1
"

inherit cargo

DESCRIPTION="A fast TUI-based debugger for Linux"
HOMEPAGE="https://github.com/al13n321/nnd"
MY_PV="${PV%.0}"
SRC_URI="
	https://github.com/al13n321/nnd/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"
S="${WORKDIR}/${PN}-${MY_PV}"

LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"

pkg_pretend() {
	[[ ${ARCH} == amd64 ]] || die "nnd only supports x86_64"
}