-
Notifications
You must be signed in to change notification settings - Fork 428
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
1 parent
3f90924
commit 6e6c3a7
Showing
8 changed files
with
79 additions
and
37 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
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 +1 @@ | ||
(ignored_subdirs (node_modules js)) | ||
(dirs :standard \ node_modules js) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,18 +1,29 @@ | ||
{ | ||
description = "Nix Flake for ReasonML"; | ||
|
||
inputs.nix-filter.url = "github:numtide/nix-filter"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
inputs.nixpkgs.url = "github:anmonteiro/nix-overlays"; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
outputs = { self, nixpkgs, flake-utils, nix-filter }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = nixpkgs.legacyPackages."${system}".extend (self: super: { | ||
ocamlPackages = super.ocaml-ng.ocamlPackages_5_00; | ||
}); | ||
in | ||
rec { | ||
packages.default = pkgs.callPackage ./nix { }; | ||
devShells.default = pkgs.callPackage ./shell.nix { }; | ||
packages.default = pkgs.callPackage ./nix { | ||
nix-filter = nix-filter.lib; | ||
}; | ||
devShells = { | ||
default = pkgs.callPackage ./nix/shell.nix { | ||
reason = packages.default; | ||
}; | ||
release = pkgs.callPackage ./nix/shell.nix { | ||
reason = packages.default; | ||
release-mode = true; | ||
}; | ||
}; | ||
}); | ||
} |
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
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,26 @@ | ||
{ mkShell | ||
, ocamlPackages | ||
, reason | ||
, stdenv | ||
, lib | ||
, cacert | ||
, curl | ||
, git | ||
, release-mode ? false | ||
}: | ||
|
||
mkShell { | ||
inputsFrom = [ reason ]; | ||
buildInputs = with ocamlPackages; [ | ||
utop | ||
merlin | ||
] | ||
++ (if release-mode then [ | ||
cacert | ||
curl | ||
ocamlPackages.dune-release | ||
git | ||
] else [ ]) | ||
; | ||
|
||
} |
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