Skip to content

Commit

Permalink
prepare release 0.20 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Oct 8, 2023
1 parent 1f53fc0 commit b7aed17
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 98 deletions.
31 changes: 31 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,34 @@
(using melange 0.1)

(name melange-webapi)

(generate_opam_files true)

(source
(github melange-community/melange-webapi))

(authors "Cheng Lou <[email protected]>")

(maintainers
"Javier Ch\195\161varri <[email protected]>"
"David Sancho <[email protected]>")

(homepage "https://github.com/melange-community/melange-webapi")

(bug_reports "https://github.com/melange-community/melange-webapi/issues")

(license "MIT")

(package
(name melange-webapi)
(synopsis "Melange bindings to the DOM")
(description "Melange bindings to the DOM and other Web APIs.")
(depends
(ocaml
(>= "5.1"))
(melange
(>= "2.0.0"))
melange-fetch
(reason
(>= "3.10"))
(ocaml-lsp-server :with-test)))
73 changes: 10 additions & 63 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 5 additions & 23 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,18 @@
url = "github:nix-ocaml/nix-overlays";
inputs.flake-utils.follows = "flake-utils";
};
inputs.melange-src = {
url = "github:melange-re/melange";
inputs.nix-filter.follows = "nix-filter";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, flake-utils, nix-filter, melange-src }:
outputs = { self, nixpkgs, flake-utils, nix-filter }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}".appendOverlays [
(self: super: {
ocamlPackages = super.ocaml-ng.ocamlPackages_5_1.overrideScope' (oself: osuper: {
ppxlib = osuper.ppxlib.overrideAttrs (_: {
src = super.fetchFromGitHub {
owner = "ocaml-ppx";
repo = "ppxlib";
rev = "4026b795d9b9bd44beaf11b790a7f9a26fc0aa63";
hash = "sha256-dRWHkE9aZS7gQp5CAT8qCX/uKYEbiIy7our5XXgMHGI=";
};

});
});
ocamlPackages = super.ocaml-ng.ocamlPackages_5_1;
})
melange-src.overlays.default
];
inherit (pkgs) nodejs_latest lib stdenv darwin;

melange-json = with pkgs.ocamlPackages; buildDunePackage {
melange-webapi = with pkgs.ocamlPackages; buildDunePackage {
pname = "melange-webapi";
version = "dev";

Expand All @@ -48,20 +31,19 @@
};

mkShell = { buildInputs ? [ ] }: pkgs.mkShell {
inputsFrom = [ melange-json ];
inputsFrom = [ melange-webapi ];
nativeBuildInputs = with pkgs; [
yarn
nodejs_latest
] ++ (with pkgs.ocamlPackages; [
ocamlformat
merlin
melange-jest
]);
inherit buildInputs;
};
in
rec {
packages.default = melange-json;
packages.default = melange-webapi;
devShells = {
default = mkShell { };
release = mkShell {
Expand Down
16 changes: 4 additions & 12 deletions melange-webapi.opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ maintainer: [
"Javier Chávarri <[email protected]>"
"David Sancho <[email protected]>"
]
authors: [
"chenglou"
]
authors: ["Cheng Lou <[email protected]>"]
license: "MIT"
homepage: "https://github.com/melange-community/melange-webapi/"
doc: "https://github.com/melange-community/melange-webapi/"
homepage: "https://github.com/melange-community/melange-webapi"
bug-reports: "https://github.com/melange-community/melange-webapi/issues"
depends: [
"dune" {>= "3.8"}
"ocaml"
"melange" {>= "2.0"}
"ocaml" {>= "5.1"}
"melange" {>= "2.0.0"}
"melange-fetch"
"reason" {>= "3.10"}
"ocaml-lsp-server" {with-test}
Expand All @@ -37,8 +34,3 @@ build: [
]
]
dev-repo: "git+https://github.com/melange-community/melange-webapi.git"
pin-depends: [
[ "melange.2.0.0" "git+https://github.com/melange-re/melange.git#e114ad55d185badeb32b3c766c9ab547495eac1b" ]
[ "reason.3.10.0" "git+https://github.com/reasonml/reason.git#972261dab3b651ff8ab9b8b9fcc32940595073dc" ]
[ "melange-fetch.dev" "git+https://github.com/melange-community/melange-fetch.git#796f941b6b85eb7e6182ac6e4f40708bfde7a9a9" ]
]

0 comments on commit b7aed17

Please sign in to comment.