pantry/projects/nushell.sh/package.yml

45 lines
1.3 KiB
YAML
Raw Normal View History

2022-12-18 05:37:11 +03:00
distributable:
url: https://github.com/nushell/nushell/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: nushell/nushell/tags
dependencies:
openssl.org: ^1
build:
dependencies:
rust-lang.org: ^1.60.0
rust-lang.org/cargo: ^0.65
freedesktop.org/pkg-config: ^0.29
script:
cargo install --path=. --root={{prefix}}
test:
cargo test
test:
2023-02-01 01:42:43 +03:00
dependencies:
crates.io/semverator: '*'
2022-12-18 05:37:11 +03:00
script: |
dd if=/dev/zero count=1 bs=101 of=big
dd if=/dev/zero count=1 bs=99 of=little
OUT=$(nu -c 'ls | where size < 100b')
test "$OUT" = "$FIXTURE"
2023-02-01 01:42:43 +03:00
if semverator lt {{version}} 0.75.0; then
nu -c 'fetch https://tea.xyz'
else
nu -c 'http get https://tea.xyz'
fi
2022-12-18 05:37:11 +03:00
env:
FIXTURE: |
╭───┬────────┬──────┬──────┬──────────╮
# │ name │ type │ size │ modified │
├───┼────────┼──────┼──────┼──────────┤
│ 0 │ little │ file │ 99 B │ now │
╰───┴────────┴──────┴──────┴──────────╯
provides:
- bin/nu