steamPackages.steam: convert to use finalAttrs

This commit is contained in:
Aidan Gauland 2024-09-22 10:06:25 +12:00
parent ace5234a41
commit e6262e0ced
No known key found for this signature in database
GPG Key ID: 16E68DD2D0E77C91

View File

@ -1,22 +1,21 @@
{ lib, stdenv, fetchurl, runtimeShell, traceDeps ? false, bash }:
let
traceLog = "/tmp/steam-trace-dependencies.log";
version = "1.0.0.74";
in stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "steam-original";
inherit version;
version = "1.0.0.74";
src = fetchurl {
# use archive url so the tarball doesn't 404 on a new release
url = "https://repo.steampowered.com/steam/archive/stable/steam_${version}.tar.gz";
url = "https://repo.steampowered.com/steam/archive/stable/steam_${finalAttrs.version}.tar.gz";
sha256 = "sha256-sO07g3j1Qejato2LWJ2FrW3AzfMCcBz46HEw7aKxojQ=";
};
makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
postInstall = ''
postInstall =
let
traceLog = "/tmp/steam-trace-dependencies.log";
in ''
rm $out/bin/steamdeps
${lib.optionalString traceDeps ''
cat > $out/bin/steamdeps <<EOF
@ -51,4 +50,4 @@ in stdenv.mkDerivation {
maintainers = with maintainers; [ jagajaga ];
mainProgram = "steam";
};
}
})