fabapp/flake.nix

49 lines
1 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;
2023-10-06 14:40:56 +02:00
# config.allowUnfree = true;
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
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
# Tools
nixfmt
# Linux graphical deps
xorg.libX11
libGL
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
formatter = pkgs.nixfmt;
2023-10-04 14:20:49 +02:00
};
};
}