1 { stdenv, steamArch, lib, perl, pkgs, steam-runtime
6 overridePkgs = lib.optionals (!runtimeOnly) (with pkgs; [
20 allPkgs = overridePkgs ++ [ steam-runtime ];
22 gnuArch = if steamArch == "amd64" then "x86_64-linux-gnu"
23 else if steamArch == "i386" then "i386-linux-gnu"
24 else abort "Unsupported architecture";
26 libs = [ "lib/${gnuArch}" "lib" "usr/lib/${gnuArch}" "usr/lib" ];
27 bins = [ "bin" "usr/bin" ];
29 in stdenv.mkDerivation {
30 name = "steam-runtime-wrapped";
32 nativeBuildInputs = [ perl ];
34 builder = ./build-wrapped.sh;
37 inherit gnuArch libs bins overridePkgs;
42 buildDir "${toString libs}" "${toString (map lib.getLib allPkgs)}"
43 buildDir "${toString bins}" "${toString (map lib.getBin allPkgs)}"