-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
opam-version: "2.0" | ||
|
||
maintainer: "[email protected]" | ||
authors: [ "Tweag" ] | ||
|
||
homepage: "https://topiary.tweag.io/" | ||
bug-reports: "https://github.com/tweag/topiary/issues" | ||
dev-repo: "git+https://github.com/tweag/topiary.git" | ||
|
||
license: "MIT" | ||
depends: ["conf-rust-2021"] | ||
|
||
build:[ | ||
[ "cargo" "build" | ||
"--release" | ||
"--package" "topiary-cli" ] | ||
[ "sh" "make-topiary-wrapper.sh" | ||
"--queries-dir" "%{share}%/topiary/queries" | ||
"--topiary-wrapped" "%{bin}%/.topiary-wrapped/topiary" | ||
"--output-file" "topiary-wrapper" ] | ||
] | ||
|
||
install: [ | ||
[ "mkdir" "%{bin}%/.topiary-wrapped" ] | ||
[ "cp" "target/release/topiary" "%{bin}%/.topiary-wrapped/topiary" ] | ||
[ "cp" "topiary-wrapper" "%{bin}%/topiary" ] | ||
[ "mkdir" "%{share}%/topiary" ] | ||
[ "cp" "-R" "topiary/topiary-queries/queries" "%{share}%/topiary/queries" ] | ||
] | ||
|
||
synopsis: "A formatter for OCaml based on the Topiary universal formatting engine" | ||
description: """ | ||
Topiary is a tool in the Tree-sitter ecosystem, designed for formatter authors | ||
and formatter users. Authors can create a formatter without having to write | ||
their own engine or even their own parser. Users benefit from uniform code style | ||
and the convenience of using a single formatter tool across multiple languages. | ||
|
||
Topiary is written in Rust and developed by Tweag. | ||
""" | ||
|
||
url { | ||
src: "https://github.com/tweag/topiary-opam/releases/download/v0.6.0/source-code-with-submodules.tar.xz" | ||
checksum: [ | ||
"md5=6e9771b047d5ca821fde4545f862e557" | ||
"sha512=589ae0ba7ed3146f8f71ba0a55723fe79a4c0a1e876ddc1b004766482dd7f60b17bb62a94bf9f952c3a2535cf832f53ceef71066df0945244bab94ea3751e2e1" | ||
] | ||
} |