From 52a010e999cc2447b99e92bd8f1ec76390a6ea4a Mon Sep 17 00:00:00 2001 From: cybrneko Date: Thu, 6 Aug 2026 23:29:07 -0500 Subject: [PATCH] nix dev environment --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0578d48 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1785967620, + "narHash": "sha256-IItrdb7Puk05RqOBWZYFC5X6Wl1sJmCfh5MWVHw5iMM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b7c2ada94fe99c15b0dbcf4d11fd7850b957a436", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..0059819 --- /dev/null +++ b/flake.nix @@ -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" + ''; + }; + }; +} \ No newline at end of file