diff options
author | Patrick Hilhorst <git@hilhorst.be> | 2018-10-25 10:33:37 +0200 |
---|---|---|
committer | Patrick Hilhorst <git@hilhorst.be> | 2018-10-25 10:33:37 +0200 |
commit | 7c2b6b0afee1acddf37f860982617502bb9ae10f (patch) | |
tree | f0cfcbaf7245ddf7ecafd811de027a46845cd3c8 /pkgs | |
parent | 45a419ab5a23c93421c18f3d9cde015ded22e712 (diff) | |
download | nixpkgs-7c2b6b0afee1acddf37f860982617502bb9ae10f.tar nixpkgs-7c2b6b0afee1acddf37f860982617502bb9ae10f.tar.gz nixpkgs-7c2b6b0afee1acddf37f860982617502bb9ae10f.tar.bz2 nixpkgs-7c2b6b0afee1acddf37f860982617502bb9ae10f.tar.lz nixpkgs-7c2b6b0afee1acddf37f860982617502bb9ae10f.tar.xz nixpkgs-7c2b6b0afee1acddf37f860982617502bb9ae10f.tar.zst nixpkgs-7c2b6b0afee1acddf37f860982617502bb9ae10f.zip |
steam: made update-runtime.py nicer
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/games/steam/update-runtime.py | 7 |
1 files changed, 4 insertions, 3 deletions
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") |