Skip to content

Commit 6e8375b

Browse files
committed
New package: pixi-0.68.0
1 parent 5d5a577 commit 6e8375b

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

srcpkgs/pixi/template

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Template file for 'pixi'
2+
pkgname=pixi
3+
version=0.68.0
4+
revision=1
5+
archs="~i686* ~armv6l* ~armv7l*" # No support upstream
6+
build_style=cargo
7+
build_helper="qemu"
8+
make_check_args="-- --test-threads=1 --skip linux_clean_environment_variables"
9+
make_install_args="--path crates/pixi"
10+
hostmakedepends="cmake pkg-config"
11+
makedepends="libzstd-devel"
12+
checkdepends="git"
13+
short_desc="Fast conda & PyPI package manager"
14+
maintainer="UENO, M. <eunosium-1128@live.jp>"
15+
license="BSD-3-Clause"
16+
homepage="https://pixi.prefix.dev/"
17+
changelog="https://raw.githubusercontent.com/prefix-dev/pixi/refs/heads/main/CHANGELOG.md"
18+
distfiles="https://github.com/prefix-dev/pixi/archive/refs/tags/v${version}.tar.gz"
19+
checksum=4b0e1eaf12a2acbd99e1472a2c4a0c1ae71e0de312117c91d17de3130177467a
20+
21+
post_patch() {
22+
# Upstream's .cargo/config.toml hardcodes "aarch64-linux-gnu-gcc" as both
23+
# CC and linker for the aarch64-unknown-linux-musl target, which doesn't
24+
# exist in the cross-aarch64-linux-musl container. Drop the file: void's
25+
# rust build_helper already exports CARGO_TARGET_<TRIPLE>_LINKER from
26+
# $CC, so nothing here is required for the build.
27+
rm -r .cargo
28+
}
29+
30+
pre_build() {
31+
# sha2-asm's build.rs calls .flag("-march=armv8-a+crypto") to enable the
32+
# SHA256 ARMv8 intrinsics (sha256su0 / sha256h). cc-rs appends the env
33+
# CFLAGS *after* programmatic flags, so void's cross profile's bare
34+
# -march=armv8-a wins by being last on the gcc command line and the
35+
# assembler then rejects the crypto opcodes. Rewrite the env -march in
36+
# place so the trailing -march also has +crypto.
37+
case "$XBPS_TARGET_MACHINE" in
38+
aarch64*)
39+
export CFLAGS="${CFLAGS//-march=armv8-a/-march=armv8-a+crypto}"
40+
export CXXFLAGS="${CXXFLAGS//-march=armv8-a/-march=armv8-a+crypto}"
41+
;;
42+
esac
43+
}
44+
45+
post_install() {
46+
vlicense LICENSE
47+
48+
for shell in bash fish zsh; do
49+
vtargetrun ${DESTDIR}/usr/bin/pixi completion -s ${shell} > pixi.${shell}
50+
vcompletion pixi.${shell} ${shell}
51+
done
52+
}

0 commit comments

Comments
 (0)