Hi,
I’ve been trying to build duckstation using the build files at nixpkgs/pkgs/by-name/du/duckstation at b6018f87da91d19d0ab4cf979885689b469cdd41 · NixOS/nixpkgs · GitHub . I’m running NixOS 26.05 on an Intel CPU laptop with Nvidia 3060 discrete GPU (mid-2021 Razer Blade).
First problem was the license so:
$ export NIXPKGS_ALLOW_UNFREE=1
Second problem was qt5 being deprecated. My workaround is to build with:
$ nix-build --show-trace -E ‘with import <nixpkgs> {}; qt6Packages.callPackage ./package.nix {extra-cmake-modules=pkgs.kdePackages.extra-cmake-modules;}’
Everything appears to build, I can’t see any errors until nix tries to install and the versionCheckHook phase when I get (output trimmed, full build output at duckstation build log - Pastes.io ):
Install the project…
– Install configuration: “Release”
– Installing: /nix/store/dlxcxfi2zd3yafyla5np8p7ifkaf7cyx-shaderc-duckstation-0.1-11443-dev/include/shaderc/env.h
...
stripping (with command strip and flags -S -p) in /nix/store/dlxcxfi2zd3yafyla5np8p7ifkaf7cyx-shaderc-duckstation-0.1-11443-dev/lib
Running phase: installCheckPhase
Executing versionCheckPhase
versionCheckHook: /nix/store/b7aydy16gwyff3yny14n7za22ncwmfaf-shaderc-duckstation-0.1-11443/bin/glslc was not found, or is not an executable
error: Cannot build ‘/nix/store/8zqd519r1c8dg2cnipfa50m0q4s1qkzs-shaderc-duckstation-0.1-11443.drv’.
Reason: builder failed with exit code 2.
And then I get the build cleanup etc. with the error repeated.
I tried with 2 different versions of duckstation: v0.1.10130 (the version specified in the 25.11 package.nix) and the most recent release: v0.1.11443, I get exactly the same error. Not surprising really, it’s the shaderc dependency that is failing to build.
I’m going to do some more debugging myself with nix-shell, but I’d really appreciate any thoughts, ideas, workarounds, etc.
I’ve tried to use various PS1 plugins for libretro but they don’t work very well, so I’m trying to get duckstation working because it did everything I wanted on NixOS 25.11.
Cheers