new file: projects/dhall-lang.org/package.yml (#5125)

This commit is contained in:
Andrew 2024-02-08 21:21:51 +02:00 committed by GitHub
parent f7260902f1
commit f2cf67eb13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,37 @@
distributable:
url: https://hackage.haskell.org/package/dhall-{{version}}/dhall-{{version}}.tar.gz
strip-components: 1
versions:
url: https://hackage.haskell.org/package/dhall
match: /dhall-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^dhall-/
- /\.tar\.gz$/
dependencies:
invisible-island.net/ncurses: ^6.4
zlib.net: ^1.3
build:
dependencies:
haskell.org: '*'
haskell.org/cabal: '*'
script:
- cabal v2-update
- mkdir -p {{prefix}}/bin
- cabal v2-install $ARGS
- install -D man/dhall.1 {{prefix}}/share/man/man1/dhall.1
env:
ARGS:
- --install-method=copy
- --installdir={{prefix}}/bin
- --jobs={{hw.concurrency}}
provides:
- bin/dhall
test:
- dhall format <<< '{ = }' | grep '{=}'
- dhall normalize <<< 'let x = 1 in x' | grep 1
- dhall version | grep '{{version}}'