mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/dhall-lang.org/package.yml (#5125)
This commit is contained in:
parent
f7260902f1
commit
f2cf67eb13
1 changed files with 37 additions and 0 deletions
37
projects/dhall-lang.org/package.yml
Normal file
37
projects/dhall-lang.org/package.yml
Normal 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}}'
|
Loading…
Reference in a new issue