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
11 additions
and
15 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 |
---|---|---|
@@ -1,24 +1,20 @@ | ||
{ stdenv, fetchFromGitHub, ocamlPackages }: | ||
{ lib, fetchurl, ocamlPackages }: | ||
|
||
stdenv.mkDerivation rec { | ||
ocamlPackages.buildDunePackage rec { | ||
pname = "obelisk"; | ||
version = "0.4.0"; | ||
src = fetchFromGitHub { | ||
owner = "lelio-brun"; | ||
repo = "obelisk"; | ||
rev = "v${version}"; | ||
sha256 = "0rw85knbwqj2rys1hh5qy8sfdqb4mb1wsriy38n7zcpbwim47vb8"; | ||
version = "0.5.2"; | ||
useDune2 = true; | ||
src = fetchurl { | ||
url = "https://github.com/Lelio-Brun/Obelisk/releases/download/v${version}/obelisk-v${version}.tbz"; | ||
sha256 = "0s86gkypyrkrp83xnay258ijri3yjwj3marsjnjf8mz58z0zd9g6"; | ||
}; | ||
|
||
buildInputs = with ocamlPackages; [ ocaml findlib ocamlbuild menhir ]; | ||
|
||
installFlags = [ "BINDIR=$(out)/bin" ]; | ||
buildInputs = with ocamlPackages; [ menhir re ]; | ||
|
||
meta = { | ||
description = "A simple tool which produces pretty-printed output from a Menhir parser file (.mly)"; | ||
license = stdenv.lib.licenses.mit; | ||
maintainers = [ stdenv.lib.maintainers.vbgl ]; | ||
inherit (src.meta) homepage; | ||
inherit (ocamlPackages.ocaml.meta) platforms; | ||
license = lib.licenses.mit; | ||
maintainers = [ lib.maintainers.vbgl ]; | ||
homepage = "https://github.com/Lelio-Brun/Obelisk"; | ||
}; | ||
} |