summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-10-18 01:42:43 -0400
committerFreya Murphy <freya@freyacat.org>2025-10-18 01:42:43 -0400
commit4b102c97a39d1c095669979ac3c3fc00e977684d (patch)
tree6eea382ab51c9e3931835b8426a078b9490c30be /flake.nix
parentdungeon: refactor into entity module, and add struct (better match proposal) (diff)
downloadDungeonCrawl-4b102c97a39d1c095669979ac3c3fc00e977684d.tar.gz
DungeonCrawl-4b102c97a39d1c095669979ac3c3fc00e977684d.tar.bz2
DungeonCrawl-4b102c97a39d1c095669979ac3c3fc00e977684d.zip
nix: add audio packages to flake
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index f39a7c1..88d1256 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,6 +11,7 @@
flake-utils,
...
}: let
+ lib = nixpkgs.lib;
supportedSystems = let
inherit (flake-utils.lib) system;
in [
@@ -22,12 +23,15 @@
pkgs = import nixpkgs {inherit system;};
libs = with pkgs; [
libGL
+ alsa-lib
+ pulseaudio
wayland
xorg.libXrandr
xorg.libXinerama
xorg.libXcursor
xorg.libXi
];
+ libPath = lib.makeLibraryPath libs;
in {
devShell =
pkgs.mkShell
@@ -45,7 +49,7 @@
glfw
pkg-config
] ++ libs;
- LD_LIBRARY_PATH = libs;
+ LD_LIBRARY_PATH = libPath;
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
};