From 20967ba2ea9af0afa6160f98a813a3e317fe3c34 Mon Sep 17 00:00:00 2001 From: June Stepp Date: Sat, 22 Feb 2025 23:04:20 -0600 Subject: [PATCH] fix: Add libz to FHS as required by Nuitka --- CONTRIBUTING.md | 2 +- flake.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 164c3ee..cc1cce6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,7 @@ OneLauncher uses [Poetry](https://python-poetry.org) for dependency management. OneLauncher comes with a [Nix](https://nixos.org/) flake for easily replicating the standard development environment. It can be used with [direnv](https://github.com/direnv/direnv) or the `nix develop` command. When using Nix, dependencies aren't installed with poetry. `poetry add`, ect can still be used for editing the dependency files, but `poetry run` should not be used. -The easiest way to test compiled builds on NixOS is to use `steam-run`. Ex: `nix run nixpkgs#steam-run build/out/onelauncher.bin`. +The compiled builds can be tested on NixOS with `nix run .#fhs-run build/out/onelauncher.bin`. ## Building diff --git a/flake.nix b/flake.nix index d215ee2..ef57c82 100644 --- a/flake.nix +++ b/flake.nix @@ -65,6 +65,12 @@ packages = { onelauncher = poetry_app; default = self.packages.${system}.onelauncher; + fhs-run = + (pkgs.steam-fhsenv-without-steam.override { + # steam-unwrapped = null; + extraPkgs = pkgs: [pkgs.libz]; + }) + .run; }; devShells.default = pkgs.mkShell { inputsFrom = [poetry_env.env];