diff options
-rw-r--r-- | .envrc | 7 | ||||
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | NOTES.md | 1 | ||||
-rw-r--r-- | devenv.nix | 75 | ||||
-rw-r--r-- | devenv.yaml | 1 |
5 files changed, 55 insertions, 38 deletions
@@ -0,0 +1,7 @@ +export DIRENV_WARN_TIMEOUT=20s + +eval "$(devenv direnvrc)" + +# The use_devenv function supports passing flags to the devenv command +# For example: use devenv --impure --option services.postgres.enable:bool true +use devenv diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4d058db --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Devenv +.devenv* +devenv.local.nix + +# direnv +.direnv + +# pre-commit +.pre-commit-config.yaml diff --git a/NOTES.md b/NOTES.md new file mode 100644 index 0000000..6e57e6e --- /dev/null +++ b/NOTES.md @@ -0,0 +1 @@ +the ssr-example package was a shitshow and couldn't get it to run but it uses Eio and other interesting web stuff. will be good to check later @@ -49,44 +49,42 @@ }; propagatedBuildInputs = with opkgs; [ppxlib yojson]; }; - - server-reason-react = opkgs.buildDunePackage { - pname = "server-reason-react"; - version = "n/a"; - doCheck = true; - - src = ./srr; - # src = pkgs.fetchFromGitHub { - # owner = "ml-in-barcelona"; - # repo = "server-reason-react"; - # rev = "d5dd436b0a447ff0a82f9a8d7a02f102139299a9"; - # sha256 = "sha256-CIMxkElHW6GARt8WKe+mr+G/MNkMfxvP/Q6yI1nFG+M="; - # }; - nativeBuildInputs = with opkgs; [ - ocamlformat - reason - melange - reason-native.refmterr - ]; - propagatedBuildInputs = - (with opkgs; [ - reason-react - reason-react-ppx - melange-json - melange-json-native - alcotest-lwt - ocamlformat - uucp - ocaml-quickjs - yojson - uri - melange - ocaml_pcre - lwt - lwt_ppx - ]) - ++ [pkgs.nodejs]; - }; + # server-reason-react = opkgs.buildDunePackage { + # pname = "server-reason-react"; + # version = "0.3.1"; + # doCheck = true; + # # src = ./srr; + # src = pkgs.fetchFromGitHub { + # owner = "ml-in-barcelona"; + # repo = "server-reason-react"; + # rev = "d5dd436b0a447ff0a82f9a8d7a02f102139299a9"; + # sha256 = "sha256-CIMxkElHW6GARt8WKe+mr+G/MNkMfxvP/Q6yI1nFG+M="; + # }; + # nativeBuildInputs = with opkgs; [ + # # ocamlformat + # reason + # melange + # reason-native.refmterr + # ]; + # propagatedBuildInputs = + # (with opkgs; [ + # uucp + # ocaml-quickjs + # yojson + # uri + # melange + # ocaml_pcre + # lwt + # lwt_ppx + # # reason-react + # # reason-react-ppx + # # melange-json + # # melange-json-native + # # alcotest-lwt + # # ocamlformat + # ]) + # ++ [pkgs.nodejs]; + # }; # nix-ocaml = inputs.nix-ocaml.legacyPackages.${pkgs.system}; in { # https://devenv.sh/packages/ @@ -101,6 +99,7 @@ in { ]) ++ (with oopkgs; [ocaml opam dune_3]) ++ [ + /nix/store/0rqfrhc4j7b7d5zqjdp3g3563305q8vs-ocaml5.2.1-server-reason-react-0.4.0 # server-reason-react melange-json-native ] diff --git a/devenv.yaml b/devenv.yaml index ca6a9e1..976a43e 100644 --- a/devenv.yaml +++ b/devenv.yaml @@ -11,6 +11,7 @@ inputs: # If you're using non-OSS software, you can set allowUnfree to true. # allowUnfree: true +impure: true # If you're willing to use a package that's vulnerable # permittedInsecurePackages: |