fabapp/flake.nix

71 lines
1.7 KiB
Nix
Raw Normal View History

2023-10-04 14:20:49 +02:00
{
description = "FabApp";
inputs = {
2023-10-04 14:20:49 +02:00
# take unstable if not specified
# nixpkgs.url = "github:nixos/nixpkgs/release-23.05";
2023-10-04 14:20:49 +02:00
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
flake = {
# Put your original flake attributes here.
};
systems = [ "x86_64-linux" ];
# https://flake.parts/module-arguments.html#persystem-module-parameters
perSystem = { pkgs, system, ... }: {
_module.args.pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
devShells.default = with pkgs;
let
vscodeCustom = pkgs.vscode-with-extensions.override {
2023-10-04 14:20:49 +02:00
vscodeExtensions = with pkgs.vscode-extensions; [
# Flutter
dart-code.dart-code
dart-code.flutter
# Nix
bbenoist.nix
brettm12345.nixfmt-vscode
];
2023-10-04 14:20:49 +02:00
};
2023-10-04 14:20:49 +02:00
in mkShell {
buildInputs = [
2023-10-04 14:20:49 +02:00
sqlite
# Dev tools
2023-10-04 14:20:49 +02:00
just
vscodeCustom
2023-10-04 14:20:49 +02:00
# Flutter
flutter
2023-10-04 14:20:49 +02:00
# Linux toolchain
clang_15
cmake
ninja
pkg-config
gtk3
pcre
libepoxy
2023-10-04 14:20:49 +02:00
# Zig / webAssembly impl.
zig
2023-10-04 14:20:49 +02:00
zls
2023-10-04 14:20:49 +02:00
];
2023-10-04 14:20:49 +02:00
2023-10-04 14:20:49 +02:00
# see: https://discourse.nixos.org/t/flutter-run-d-linux-build-process-failed/16552/2
shellHook = ''
export LD_LIBRARY_PATH=${libepoxy}/lib
'';
};
2023-10-04 14:20:49 +02:00
};
};
}