From 2a5cb5656662f91950f4efa07309e76b7b5a3b29 Mon Sep 17 00:00:00 2001 From: haxala1r Date: Tue, 9 Dec 2025 19:44:30 +0300 Subject: [PATCH] Reorganize flake again, it should be good now --- flake.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 7a552e6..cc8c1c3 100644 --- a/flake.nix +++ b/flake.nix @@ -7,18 +7,19 @@ outputs = {self, nixpkgs}: let pkgs = nixpkgs.legacyPackages.x86_64-linux; - nativeOcamlInputs = with pkgs.ocamlPackages; [menhir merlin dune_3]; - nativeInputs = with pkgs; [ocaml]; + devInputs = with pkgs.ocamlPackages; [merlin]; + ocamlPkgs = with pkgs.ocamlPackages; [menhir dune_3]; + nativeInputs = with pkgs; ocamlPkgs ++ [ocaml]; in { packages.x86_64-linux.default = pkgs.ocamlPackages.buildDunePackage { pname = "ollisp"; version = "0.0.1"; src = pkgs.lib.cleanSource ./.; - nativeBuildInputs = nativeInputs ++ nativeOcamlInputs; + nativeBuildInputs = nativeInputs; }; devShells.x86_64-linux.default = pkgs.mkShell { - nativeBuildInputs = nativeInputs ++ nativeOcamlInputs; + nativeBuildInputs = nativeInputs ++ devInputs; }; }; }