summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-06-15 00:50:10 +0700
committerpolwex <polwex@sortug.com>2025-06-15 00:50:10 +0700
commitda17b4172187f280f1fecbc70440c13215738e55 (patch)
treeaca431505e7ccf8b376a0096f8bfb8f8ca5934b5
parentd8b3e15bec60f58defad13e961f80354d250235d (diff)
feels good man
-rw-r--r--.envrc7
-rw-r--r--.gitignore9
-rw-r--r--NOTES.md1
-rw-r--r--devenv.nix75
-rw-r--r--devenv.yaml1
5 files changed, 55 insertions, 38 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..e3c2943
--- /dev/null
+++ b/.envrc
@@ -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
diff --git a/devenv.nix b/devenv.nix
index dc5f298..7e52fad 100644
--- a/devenv.nix
+++ b/devenv.nix
@@ -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: