summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-10-07 11:01:19 -0400
committerFreya Murphy <freya@freyacat.org>2025-10-08 19:37:15 -0400
commitb11f074ceba10af62b35b414ecaa51a8f13c6550 (patch)
treed12979f7eeb384f94b145ea763a97dcde353745b /flake.nix
parentInitial commit (diff)
downloadDungeonCrawl-b11f074ceba10af62b35b414ecaa51a8f13c6550.tar.gz
DungeonCrawl-b11f074ceba10af62b35b414ecaa51a8f13c6550.tar.bz2
DungeonCrawl-b11f074ceba10af62b35b414ecaa51a8f13c6550.zip
initial baseline
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..f39a7c1
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,54 @@
+{
+ description = "unnamed game";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs = {
+ nixpkgs,
+ flake-utils,
+ ...
+ }: let
+ supportedSystems = let
+ inherit (flake-utils.lib) system;
+ in [
+ system.aarch64-linux
+ system.x86_64-linux
+ ];
+ in
+ flake-utils.lib.eachSystem supportedSystems (system: let
+ pkgs = import nixpkgs {inherit system;};
+ libs = with pkgs; [
+ libGL
+ wayland
+ xorg.libXrandr
+ xorg.libXinerama
+ xorg.libXcursor
+ xorg.libXi
+ ];
+ in {
+ devShell =
+ pkgs.mkShell
+ {
+ packages = with pkgs; [
+ # rust
+ rustc
+ rustfmt
+ rust-analyzer
+ cargo
+ clippy
+ # raylib
+ cmake
+ clang
+ glfw
+ pkg-config
+ ] ++ libs;
+ LD_LIBRARY_PATH = libs;
+ LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
+ };
+
+ formatter = pkgs.alejandra;
+ });
+}