-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocamlPackages.reason-react: init at 0.15.0 (#361483)
- Loading branch information
Showing
3 changed files
with
58 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,23 @@ | ||
{ | ||
buildDunePackage, | ||
melange, | ||
reason, | ||
reason-react-ppx, | ||
}: | ||
|
||
buildDunePackage { | ||
pname = "reason-react"; | ||
inherit (reason-react-ppx) version src; | ||
nativeBuildInputs = [ | ||
reason | ||
melange | ||
]; | ||
buildInputs = [ | ||
reason-react-ppx | ||
melange | ||
]; | ||
doCheck = true; | ||
meta = reason-react-ppx.meta // { | ||
description = "Reason bindings for React.js"; | ||
}; | ||
} |
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,31 @@ | ||
{ | ||
buildDunePackage, | ||
fetchurl, | ||
lib, | ||
ppxlib, | ||
}: | ||
|
||
let | ||
version = "0.15.0"; | ||
in | ||
buildDunePackage { | ||
pname = "reason-react-ppx"; | ||
inherit version; | ||
minimalOCamlVersion = "4.14"; | ||
src = fetchurl { | ||
url = "https://github.com/reasonml/reason-react/releases/download/${version}/reason-react-${version}.tbz"; | ||
hash = "sha256-+pPJo/b50vp4pAC/ygI1LHB5O0pDJ1xpcQZOdFP8Q80="; | ||
}; | ||
buildInputs = [ | ||
ppxlib | ||
]; | ||
doCheck = false; # Needs to run in reason-react, see default.nix | ||
meta = { | ||
description = "React.js JSX PPX"; | ||
homepage = "https://github.com/reasonml/reason-react"; | ||
license = lib.licenses.mit; | ||
maintainers = [ | ||
lib.maintainers.vog | ||
]; | ||
}; | ||
} |
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