mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
fix(pandoc)
updated instructions use v2-install (nix-style?) and --prefix to get all the files needed hm. what does prefix do?
This commit is contained in:
parent
e2f503c0d4
commit
d4e43030ed
1 changed files with 12 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
distributable:
|
distributable:
|
||||||
#FIXME
|
#FIXME: pandoc and pandoc-cli have been split :/
|
||||||
url: https://hackage.haskell.org/package/pandoc-2.18/pandoc-2.18.tar.gz
|
# url: https://hackage.haskell.org/package/pandoc-cli{{ version }}/pandoc-cli-{{ version }}.tar.gz
|
||||||
|
url: https://github.com/jgm/pandoc/archive/refs/tags/{{ version }}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
#FIXME pandoc has 4 digit versions : /
|
#FIXME pandoc has 4 digit versions : /
|
||||||
|
@ -22,7 +23,14 @@ build:
|
||||||
tea.xyz/gx/cc: c99
|
tea.xyz/gx/cc: c99
|
||||||
haskell.org: ^9
|
haskell.org: ^9
|
||||||
haskell.org/cabal: ^3
|
haskell.org/cabal: ^3
|
||||||
|
crates.io/semverator: ^0
|
||||||
|
working-directory: pandoc-cli
|
||||||
script: |-
|
script: |-
|
||||||
|
if semverator satisfies '^2' '{{ version }}'; then
|
||||||
|
# pandoc 2.x - no pandoc-cli subdirectory
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
cabal update
|
cabal update
|
||||||
mkdir -p {{prefix}}/bin
|
mkdir -p {{prefix}}/bin
|
||||||
cabal install $ARGS
|
cabal install $ARGS
|
||||||
|
@ -31,6 +39,8 @@ build:
|
||||||
- --install-method=copy
|
- --install-method=copy
|
||||||
- --installdir={{prefix}}/bin
|
- --installdir={{prefix}}/bin
|
||||||
- --jobs={{hw.concurrency}}
|
- --jobs={{hw.concurrency}}
|
||||||
|
# https://pandoc.org/installing.html#creating-a-relocatable-binary
|
||||||
|
- -fembed_data_files
|
||||||
linux:
|
linux:
|
||||||
ARGS:
|
ARGS:
|
||||||
# else segfaults
|
# else segfaults
|
||||||
|
|
Loading…
Reference in a new issue