54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
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
|
|
qt6.qtwayland
|
|
|
|
# nested Wayland environment
|
|
sway
|
|
wayland
|
|
wayland-utils
|
|
|
|
# rust stuff
|
|
rustc
|
|
cargo
|
|
|
|
# etc
|
|
jq
|
|
socat
|
|
foot
|
|
];
|
|
|
|
shellHook = ''
|
|
export QML_IMPORT_PATH="${pkgs.qt6.qtdeclarative}/lib/qt-6/qml"
|
|
export QML2_IMPORT_PATH="$QML_IMPORT_PATH"
|
|
|
|
echo
|
|
echo "nomad development environment"
|
|
echo
|
|
'';
|
|
};
|
|
};
|
|
} |