2023-04-25 14:18:05 +02:00
|
|
|
{
|
|
|
|
description = "FabApp";
|
|
|
|
|
|
|
|
inputs = {
|
2023-09-29 13:58:42 +02:00
|
|
|
# take unstable if not specified
|
|
|
|
# nixpkgs.url = "github:nixos/nixpkgs/release-23.05";
|
2023-04-25 14:18:05 +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-06-02 13:35:11 +02:00
|
|
|
vscodeExtensions = with pkgs.vscode-extensions; [
|
|
|
|
# Flutter
|
|
|
|
dart-code.dart-code
|
|
|
|
dart-code.flutter
|
|
|
|
|
|
|
|
# Nix
|
|
|
|
bbenoist.nix
|
|
|
|
brettm12345.nixfmt-vscode
|
|
|
|
];
|
2023-04-25 14:18:05 +02:00
|
|
|
};
|
2023-06-02 13:35:11 +02:00
|
|
|
in mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
just
|
|
|
|
flutter
|
|
|
|
vscodeCustom
|
|
|
|
|
|
|
|
# Linux toolchain
|
|
|
|
clang_15
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gtk3
|
|
|
|
pcre
|
|
|
|
libepoxy
|
2023-09-29 13:58:49 +02:00
|
|
|
|
|
|
|
# Zig / webAssembly impl.
|
|
|
|
zig
|
2023-06-02 13:35:11 +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-04-25 14:18:05 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|