Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
nix: Separate debug output (#27871)
Julia Ryan15679673098f
diff --git a/flake.nix b/flake.nixindex f3c832b5369..834b9aa9f2f 100644--- a/flake.nix+++ b/flake.nix@@ -26,41 +26,30 @@"aarch64-darwin"];- overlays = {- rust-overlay = rust-overlay.overlays.default;- rust-toolchain = final: prev: {- rustToolchain = final.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;+ forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});+ mkZed =+ pkgs:+ let+ rustBin = rust-overlay.lib.mkRustBin { } pkgs;+ in+ pkgs.callPackage ./nix/build.nix {+ crane = crane.mkLib pkgs;+ rustToolchain = rustBin.fromRustupToolchainFile ./rust-toolchain.toml;};- zed-editor = final: prev: {- zed-editor = final.callPackage ./nix/build.nix {- crane = crane.mkLib final;- rustToolchain = final.rustToolchain;- };- };- };-- mkPkgs =- system:- import nixpkgs {- inherit system;- overlays = builtins.attrValues overlays;- };-- forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f (mkPkgs system));in- {- packages = forAllSystems (pkgs: {- default = pkgs.zed-editor;+ rec {+ packages = forAllSystems (pkgs: rec {+ default = mkZed pkgs;+ debug = default.override { profile = "dev"; };});-devShells = forAllSystems (pkgs: {- default = pkgs.callPackage ./nix/shell.nix { };+ default = pkgs.callPackage ./nix/shell.nix {+ zed-editor = packages.${pkgs.hostPlatform.system}.default;+ };});-formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);-- overlays = overlays // {- default = nixpkgs.lib.composeManyExtensions (builtins.attrValues overlays);+ overlays.default = final: _: {+ zed-editor = mkZed final;};};diff --git a/nix/shell.nix b/nix/shell.nixindex 1c80df03e54..b2c410eb89d 100644--- a/nix/shell.nix+++ b/nix/shell.nix@@ -1,5 +1,4 @@{- lib,mkShell,stdenv,stdenvAdapters,