Refactoring of the nix file. (#4494)

* Fix version number.

* Use the packages.x86_64-linux namespace.

* linux. prepend no longer required.

* Created build-shadps4 module.

.

.

.

.

.

.

.

* Move dependency list to generator function parameters.

* Using call package to run builder.

* Pull in matching names and use inherit.

* Paths need to be wrapped in a "".

* Put , on the packages.

* And inherit does not need any , .

* Fixups.

* release and releaseWithDebugInfo now use the same builder.

* Set default pacakge to releaseWtihDebugInfo.

* Rename to build, moved down a directory and deleted modules/

.

* Seperated devshell into shell.nix

.

.

.

.

.

* Double ".nix"

* Nix Formatting.

* Included missing dependencies for shell.

.

.

.

.

* Update Lock file.

* Removed old unused shell.nix.

* Collapse shell and build into flake.nix

.

* Window bar patch

.

.

.

* Removed unused patches list.

* As older nix shell was removed. Also remove old documentation.
This commit is contained in:
Connor Garey
2026-05-31 21:56:16 +01:00
committed by GitHub
parent d1030d01db
commit 5f89834cb5
4 changed files with 253 additions and 191 deletions
+3 -9
View File
@@ -48,12 +48,6 @@ sudo zypper install clang git cmake libasound2 libpulse-devel \
vulkan-devel vulkan-validationlayers libpng-devel
```
#### NixOS
```bash
nix-shell shell.nix
```
#### Nix Flake Development Shell
```bash
nix develop
@@ -63,13 +57,13 @@ ln -s ./build/compile_commands.json .
#### Nix Flake Build
```bash
nix build .?submodules=1#linux.debug
nix build .?submodules=1#debug
```
```bash
nix build .?submodules=1#linux.release
nix build .?submodules=1#release
```
```bash
nix build .?submodules=1#linux.releaseWithDebugInfo
nix build .?submodules=1#releaseWithDebugInfo
```
#### Other Linux distributions