From 193c3239ce9d9fbfec8bec5397e4aafa8e78e4eb Mon Sep 17 00:00:00 2001 From: oxalica Date: Sat, 24 Sep 2022 23:48:29 +0800 Subject: [PATCH] Include vscodium only for supported platforms --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index ced3d62..14b8e6d 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,8 @@ flake-utils.lib.eachDefaultSystem (system: let inherit (builtins) substring; + inherit (nixpkgs) lib; + pkgs = nixpkgs.legacyPackages.${system}; rustPkgs = rust-overlay.packages.${system}; @@ -59,11 +61,13 @@ nix.out # For generation of builtins. gdb jq + pre-commit (import ./dev/neovim-lsp.nix { inherit pkgs; }) (import ./dev/vim-coc.nix { inherit pkgs; }) + ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform vscodium) [ (import ./dev/vscodium.nix { inherit pkgs; }) - pre-commit ]; + RUST_BACKTRACE = "short"; NIXPKGS = nixpkgs;