Merge pull request #150049 from wamserma/crispy-doom-python

crispyDoom: move build dep to python3
This commit is contained in:
Thiago Kenji Okada 2021-12-10 19:22:59 -03:00 committed by GitHub
commit 014d67e073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, autoreconfHook, pkg-config, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub, python2 }:
{ lib, stdenv, autoreconfHook, pkg-config, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub, python3 }:
stdenv.mkDerivation rec {
pname = "crispy-doom";
@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -e 's#/games#/bin#g' -i src{,/setup}/Makefile.am
for script in $(grep -lr '^#!/usr/bin/env python$'); do patchShebangs $script; done
for script in $(grep -lr '^#!/usr/bin/env python3$'); do patchShebangs $script; done
'';
nativeBuildInputs = [ autoreconfHook pkg-config python2 ];
nativeBuildInputs = [ autoreconfHook pkg-config python3 ];
buildInputs = [ SDL2 SDL2_mixer SDL2_net ];
enableParallelBuilding = true;