Unverified Commit cfe7930b authored by John Titor's avatar John Titor
Browse files

steamPackages.steam-runtime: move to finalAttrs

explicitly use lib where needed
parent ffe2d584
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -4,16 +4,16 @@
, writeShellScript, curl, nix-update
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {

  pname = "steam-runtime";
  # from https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/VERSION.txt
  version = "0.20231127.68515";

  src = fetchurl {
    url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${version}/steam-runtime.tar.xz";
    sha256 = "sha256-invUOdJGNhrswsj9Vj/bSAkEigWtBQ554sBAyvPf0mk=";
    name = "scout-runtime-${version}.tar.gz";
    url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${finalAttrs.version}/steam-runtime.tar.xz";
    hash = "sha256-invUOdJGNhrswsj9Vj/bSAkEigWtBQ554sBAyvPf0mk=";
    name = "scout-runtime-${finalAttrs.version}.tar.gz";
  };

  buildCommand = ''
@@ -28,10 +28,10 @@ stdenv.mkDerivation rec {
    '';
  };

  meta = with lib; {
  meta = {
    description = "The official runtime used by Steam";
    homepage = "https://github.com/ValveSoftware/steam-runtime";
    license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
    maintainers = with maintainers; [ hrdinka abbradar ];
    license = lib.licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
    maintainers = with lib.maintainers; [ hrdinka abbradar ];
  };
}
})