mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
42 lines
840 B
Nix
42 lines
840 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
buildDunePackage,
|
|
ppxlib,
|
|
menhir,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mlx";
|
|
version = "0.9";
|
|
|
|
minimalOCamlVersion = "4.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocaml-mlx";
|
|
repo = "mlx";
|
|
rev = version;
|
|
hash = "sha256-3hPtyBKD2dp4UJBykOudW6KR2KXPnBuDnuJ1UNLpAp0=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/ocaml-mlx/mlx/commit/01771e2a8b45f4f70cfd93533af2af9ed4a28a7e.patch";
|
|
hash = "sha256-czA2sIORmunIeaHn7kpcuv0y97uJhe6aUEMj/QHEag4=";
|
|
})
|
|
];
|
|
|
|
buildInputs = [
|
|
ppxlib
|
|
menhir
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "OCaml syntax dialect which adds JSX syntax expressions";
|
|
homepage = "https://github.com/ocaml-mlx/mlx";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ Denommus ];
|
|
};
|
|
}
|