Skip to content

Instantly share code, notes, and snippets.

@V3ntus
Created July 3, 2024 15:47
Show Gist options
  • Save V3ntus/607d6f085a75e9408ddeb270c5d6528b to your computer and use it in GitHub Desktop.
Save V3ntus/607d6f085a75e9408ddeb270c5d6528b to your computer and use it in GitHub Desktop.
Nix/NixOS shell for Flutter desktop development
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
clang
cmake
ninja
pkg-config
gtk3
flutter
];
LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
fontconfig.lib
sqlite.out
];
GSETTINGS_SCHEMA_DIR="${pkgs.gtk3}/share/gsettings-schemas/gtk+3-3.24.41/glib-2.0/schemas/";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment