fabapp/flake.nix

60 lines
1.5 KiB
Nix
Raw Normal View History

2023-10-04 14:20:49 +02:00
{
description = "FabApp";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
zig-overlay.url = "github:mitchellh/zig-overlay";
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, ... }: {
# We need unstable for Zig
_module.args.pkgs = import inputs.nixpkgs-unstable {
2023-10-04 14:20:49 +02:00
inherit system;
# https://flake.parts/overlays
overlays = [
inputs.zig-overlay.overlays.default
];
config = { };
2023-10-04 14:20:49 +02:00
};
formatter = pkgs.nixfmt;
2023-10-04 14:20:49 +02:00
devShells.default = with pkgs;
2023-10-06 14:40:56 +02:00
mkShell {
2023-10-04 14:20:49 +02:00
buildInputs = [
2023-10-04 14:20:49 +02:00
sqlite
2023-10-04 14:20:49 +02:00
# Zig / webAssembly impl.
zig
# zigpkgs."master" # Issue with X11/GL libraries
2023-10-04 14:20:49 +02:00
zls
2023-10-06 14:33:42 +02:00
emscripten
2023-10-06 14:40:56 +02:00
# Linux graphical deps
xorg.libX11
libGL
# xorg.libXcursor
# xorg.libXi
# xorg.libXext
# xorg.libXrandr
# xorg.libXinerama
# libGLU
2023-10-04 14:20:49 +02:00
];
2023-10-04 14:20:49 +02:00
2023-10-04 14:20:49 +02:00
};
2023-10-06 14:40:56 +02:00
2023-10-04 14:20:49 +02:00
};
};
}