gdb: switch to python3 by default

This commit is contained in:
Jörg Thalheim 2018-12-01 09:00:51 +00:00
parent 84162175a3
commit 5afbdde38c
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -6,7 +6,7 @@
# Run time
, ncurses, readline, gmp, mpfr, expat, zlib, dejagnu
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python ? null
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
, guile ? null
}:
@ -16,7 +16,7 @@ let
version = "8.2";
in
assert pythonSupport -> python != null;
assert pythonSupport -> python3 != null;
stdenv.mkDerivation rec {
name =
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig texinfo perl setupDebugInfoDirs ];
buildInputs = [ ncurses readline gmp mpfr expat zlib guile ]
++ stdenv.lib.optional pythonSupport python
++ stdenv.lib.optional pythonSupport python3
++ stdenv.lib.optional doCheck dejagnu;
propagatedNativeBuildInputs = [ setupDebugInfoDirs ];