pantry/projects/prql-lang.org/package.yml
Jacob Heider d69b452c2d
fix prql >=0.9
closes #2657
closes #2663
2023-07-25 14:24:44 -04:00

34 lines
No EOL
971 B
YAML

distributable:
url: https://github.com/PRQL/prql/archive/refs/tags/{{ version }}.tar.gz
strip-components: 1
versions:
github: PRQL/prql/tags
build:
dependencies:
rust-lang.org/cargo: '*'
script:
- run: cargo install --path prql-compiler --root {{prefix}}
if: <0.4.0
- run: cargo install --path prql-compiler --root {{prefix}} --all-features
if: =0.4.0
- run: cargo install --path prql-compiler/prqlc --root {{prefix}}
if: '>=0.4.1<0.9.0'
- run: cargo install --path crates/prqlc --root {{prefix}} --all-features
if: '>=0.9.0'
# Bin got renamed; this is one way to keep ourselves working
- run: ln -s prql-compiler prqlc
working-directory: "{{prefix}}/bin"
if: <0.4.0
- run: ln -s prqlc prql-compiler
working-directory: "{{prefix}}/bin"
if: '>=0.4.0'
test:
- echo "from employees | filter has_dog | select salary" | prqlc compile
provides:
- bin/prql-compiler
- bin/prqlc