Personal Nix setup
1self: pkgs @ {
2 lib,
3 stdenv,
4 ...
5}:
6
7with lib;
8stdenv.mkDerivation {
9 pname = "steamworks-sdk-redist";
10 version = "unstable-2024-05-30";
11
12 # Steamworks SDK Redist with steamclient.so.
13 # https://steamdb.info/app/1007/depots
14 src = self.fetchSteam {
15 appId = "1007";
16 depotId = "1006";
17 manifestId = "7138471031118904166";
18 hash = "sha256-OtPI1kAx6+9G09IEr2kYchyvxlPl3rzx/ai/xEVG4oM=";
19 };
20
21 dontConfigure = true;
22 dontBuild = true;
23
24 installPhase = ''
25 runHook preInstall
26
27 mkdir -p $out/lib
28 cp linux64/steamclient.so $out/lib
29 chmod +x $out/lib/steamclient.so
30
31 runHook postInstall
32 '';
33
34 meta = {
35 description = "Steamworks SDK Redist";
36 sourceProvenance = [ sourceTypes.binaryNativeCode ];
37 license = licenses.unfree;
38 badPlatforms = [
39 { hasSharedLibraries = false; }
40 ];
41 };
42}