pantry/projects/mise.jdx.dev/package.yml
Jacob Heider 2fbeac0c1b fix(mise)
closes #5140
closes #5141
2024-02-07 16:20:28 -05:00

48 lines
1.3 KiB
YAML

distributable:
url: https://github.com/jdx/mise/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
# renamed at 2024.1.0
display-name: mise
provides:
- bin/rtx
- bin/mise
versions:
github: jdx/mise
strip: /v/
ignore: [0.x.y, 1.x.y] # they moved to calver
dependencies:
openssl.org: ^1.1 # newer mise after 1.35.2 versions require openssl
build:
dependencies:
rust-lang.org: ^1.70
rust-lang.org/cargo: '*'
freedesktop.org/pkg-config: '*'
script:
# curve25519-dalek 4.1.2 introduces some odd simd issues on x86-64
- run: sed -i
-e 's/version = "4.1.2"/version = "4.1.1"/'
-e 's/0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348/e89b8c6a2e4b1f45971ad09761aafb85514a84744b67a95e32c3cc1352d1f65c/'
Cargo.lock
if: '>=2024.2.6'
- cargo install --locked --path . --root {{prefix}}
# FIXME: <2024 isn't matching like it should. this should be split at 2024.1.0
- run: |
if test -f rtx; then
ln -s rtx mise
elif test -f mise; then
ln -s mise rtx
fi
working-directory: '{{prefix}}/bin'
env:
linux/x86-64:
# portable-atomic-1.3.1 uses this, but it's unstable
RUSTFLAGS: -C target-feature=+cmpxchg16b
test: mise --version