From 3ae6a7491d6c9547a0202808f2c5cef13cd30328 Mon Sep 17 00:00:00 2001 From: Emin Arslan Date: Sun, 5 Apr 2026 22:58:45 +0300 Subject: [PATCH] nix: add a separate shell.nix so I can specify merlin there without adding it as a build requirement --- flake.nix | 1 + shell.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 shell.nix diff --git a/flake.nix b/flake.nix index 35ef43f..92f6fed 100644 --- a/flake.nix +++ b/flake.nix @@ -12,5 +12,6 @@ in { packages.default = pkgs.callPackage ./default.nix {}; + devShells.default = pkgs.callPackage ./shell.nix {}; }); } diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..797ed0b --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{pkgs ? import {}, ...}: +# I use emacs and merlin while developing + +pkgs.mkShellNoCC { + inputsFrom = [(import ./default.nix {pkgs=pkgs;})]; + packages = [pkgs.ocamlPackages.merlin]; +}