From c5181892eea86cf4a7a5b4454fbafeaeeec61f9b Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Fri, 2 Jun 2023 13:35:11 +0200 Subject: [PATCH] add linux desktop deps --- flake.nix | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index d681867..a58e199 100644 --- a/flake.nix +++ b/flake.nix @@ -24,10 +24,37 @@ devShells.default = with pkgs; let vscodeCustom = pkgs.vscode-with-extensions.override { - vscodeExtensions = with pkgs.vscode-extensions; - [ dart-code.flutter bbenoist.nix brettm12345.nixfmt-vscode ]; + vscodeExtensions = with pkgs.vscode-extensions; [ + # Flutter + dart-code.dart-code + dart-code.flutter + + # Nix + bbenoist.nix + brettm12345.nixfmt-vscode + ]; }; - in mkShell { buildInputs = [ just flutter vscodeCustom ]; }; + in mkShell { + buildInputs = [ + just + flutter + vscodeCustom + + # Linux toolchain + clang_15 + cmake + ninja + pkg-config + gtk3 + pcre + libepoxy + ]; + + # see: https://discourse.nixos.org/t/flutter-run-d-linux-build-process-failed/16552/2 + shellHook = '' + export LD_LIBRARY_PATH=${libepoxy}/lib + ''; + }; }; }; }