From 4bc1d02698967b4f0ced8b7a6a43b9244d0591b1 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 26 Feb 2017 15:57:01 +0100 Subject: [PATCH] Python 2.7: increase priority Higher priority than Python 3.x so that `/bin/python` points to `/bin/python2` in case both 2 and 3 are installed. --- pkgs/development/interpreters/python/cpython/2.7/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/interpreters/python/cpython/2.7/default.nix b/pkgs/development/interpreters/python/cpython/2.7/default.nix index 0f09bf7650b..c5306fe7891 100644 --- a/pkgs/development/interpreters/python/cpython/2.7/default.nix +++ b/pkgs/development/interpreters/python/cpython/2.7/default.nix @@ -221,5 +221,8 @@ in stdenv.mkDerivation { license = stdenv.lib.licenses.psfl; platforms = stdenv.lib.platforms.all; maintainers = with stdenv.lib.maintainers; [ chaoflow domenkozar ]; + # Higher priority than Python 3.x so that `/bin/python` points to `/bin/python2` + # in case both 2 and 3 are installed. + priority = 5; }; }