[PR #2333] [MERGED] Add nix-shell to allow native build on NixOS #2660

Closed
opened 2026-02-27 22:00:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2333
Author: @shokerplz
Created: 2/2/2025
Status: Merged
Merged: 2/7/2025
Merged by: @georgemoralis

Base: mainHead: feat/add_nix_shell


📝 Commits (5)

  • a9ba9be Add nix-shell to allow native build on NixOS
  • fb6541d Remove unnecessary README for nix. Move major comment to shell.nix
  • fee783c Update path in building-linux.md
  • 4691b80 Use cached nix packages from unstable channel
  • 51866b9 Add proper license to nix shell

📊 Changes

2 files changed (+77 additions, -1 deletions)

View changed files

📝 documents/building-linux.md (+7 -1)
shell.nix (+70 -0)

📄 Description

This PR adds nix-shell that will allow to build shadPS4 on nixos natively. While we can use distrobox, native approach is much better since it allows us to run it on nix-machines without the need to install docker and it allows to reproduce builds without worrying about different versions of dependencies.

Tested on x86_64


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2333 **Author:** [@shokerplz](https://github.com/shokerplz) **Created:** 2/2/2025 **Status:** ✅ Merged **Merged:** 2/7/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `feat/add_nix_shell` --- ### 📝 Commits (5) - [`a9ba9be`](https://github.com/shadps4-emu/shadPS4/commit/a9ba9beaaf12440a8a507a46005728788b2608ad) Add nix-shell to allow native build on NixOS - [`fb6541d`](https://github.com/shadps4-emu/shadPS4/commit/fb6541d1bd950567ac9adc5156727be3a213f5fb) Remove unnecessary README for nix. Move major comment to shell.nix - [`fee783c`](https://github.com/shadps4-emu/shadPS4/commit/fee783ce16dfa1439f025fbd060378e2099df67c) Update path in building-linux.md - [`4691b80`](https://github.com/shadps4-emu/shadPS4/commit/4691b804bd082cf9df4c48ac29fafd1df236bcd7) Use cached nix packages from unstable channel - [`51866b9`](https://github.com/shadps4-emu/shadPS4/commit/51866b9526a58c478df81bbd32cb57f5d9e29cc5) Add proper license to nix shell ### 📊 Changes **2 files changed** (+77 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `documents/building-linux.md` (+7 -1) ➕ `shell.nix` (+70 -0) </details> ### 📄 Description This PR adds nix-shell that will allow to build shadPS4 on nixos natively. While we can use distrobox, native approach is much better since it allows us to run it on nix-machines without the need to install docker and it allows to reproduce builds without worrying about different versions of dependencies. Tested on x86_64 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:00:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2660
No description provided.