nix dev environment

This commit is contained in:
2026-08-06 23:29:07 -05:00
commit 52a010e999
2 changed files with 74 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
{
description = "development shell for nomad game shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
# build
cmake
ninja
pkg-config
# Qt / QML
qt6.qtbase
qt6.qtdeclarative
qt6.qttools
# nested Wayland environment
sway
wayland
wayland-utils
# rust stuff
rustc
cargo
# etc
jq
socat
];
shellHook = ''
echo "nomad development environment"
'';
};
};
}