From 7c2b6b0afee1acddf37f860982617502bb9ae10f Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Thu, 25 Oct 2018 10:33:37 +0200 Subject: steam: made update-runtime.py nicer --- pkgs/games/steam/update-runtime.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/games/steam/update-runtime.py b/pkgs/games/steam/update-runtime.py index c225d6bf8ad..aed42cdd566 100755 --- a/pkgs/games/steam/update-runtime.py +++ b/pkgs/games/steam/update-runtime.py @@ -1,5 +1,6 @@ -#!/usr/bin/env python2 -# +#! /usr/bin/env nix-shell +#! nix-shell -i python2 -p "with python2Packages; [python debian]" + # Script to build a Nix script to actually build a Steam runtime. # Patched version of https://github.com/ValveSoftware/steam-runtime/blob/master/build-runtime.py @@ -20,7 +21,7 @@ REPO="http://repo.steampowered.com/steamrt" DIST="scout" COMPONENT="main" -out = open("runtime-generated.nix", "w"); +out = open("runtime-generated.nix", "w") out.write("# This file is autogenerated! Do not edit it yourself, use update-runtime.py for regeneration.\n") out.write("{ fetchurl }:\n") out.write("\n") -- cgit 1.4.1