From 4368c94f42b8b78077a7e5a9b3fc3b9ad1329610 Mon Sep 17 00:00:00 2001 From: thomasjm Date: Thu, 15 Oct 2026 17:02:13 -0700 Subject: [PATCH] Add a gcroots output so GC doesn't take the toolchains --- flake.nix | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 4a5663e..0923235 100644 --- a/flake.nix +++ b/flake.nix @@ -40,17 +40,19 @@ tar -czvf $out/$name.tar.gz -C to_zip . ''; + devShellInputs = with pkgs; [ + haskell.compiler.ghc9124 + + pcre + zlib + ]; + in { devShells = { default = pkgs.mkShell { NIX_PATH = "nixpkgs=${pkgs.path}"; - buildInputs = with pkgs; [ - haskell.compiler.ghc9124 - - pcre - zlib - ]; + buildInputs = devShellInputs; }; }; @@ -89,6 +91,15 @@ exit 0 ''; + gcroots = pkgs.writeText "rust-notebook-language-server-gc-roots" '' + ${pkgs.symlinkJoin { + name = "rust-notebook-language-server-deps"; + paths = dynamic.buildInputs ++ dynamic.nativeBuildInputs + ++ static.buildInputs ++ static.nativeBuildInputs + ++ devShellInputs; + }} + ''; + nixpkgsPath = pkgs.writeShellScriptBin "nixpkgsPath.sh" "echo -n ${pkgs.path}"; });