From 44d5d31d98435036d445b224ee4d56055c6515b5 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Mon, 9 May 2022 18:20:22 -0700 Subject: [PATCH] Revert "pythonPackages: set mainProgram to pname by default" It's now the case that `nix run` checks `pname` as well as `name`, so this is no longer needed. See: https://github.com/NixOS/nix/commit/a2473823d748b0249804d393c739622146954d02 This reverts commit baf91ea7d9ffab6d1f95395b7c2f724a2e349698. --- pkgs/development/interpreters/python/mk-python-derivation.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 963073df620..4917b167046 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -176,8 +176,6 @@ let # default to python's platforms platforms = python.meta.platforms; isBuildPythonPackage = python.meta.platforms; - } // lib.optionalAttrs (attrs?pname) { - mainProgram = attrs.pname; } // meta; } // lib.optionalAttrs (attrs?checkPhase) { # If given use the specified checkPhase, otherwise use the setup hook.