mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
steamPackages.steam: convert to use finalAttrs
This commit is contained in:
parent
ace5234a41
commit
e6262e0ced
@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user