summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/mk-python-derivation.nix
diff options
context:
space:
mode:
authorMalo Bourgon <mbourgon@gmail.com>2022-05-09 18:20:22 -0700
committerMalo Bourgon <mbourgon@gmail.com>2022-05-10 11:51:54 -0700
commit44d5d31d98435036d445b224ee4d56055c6515b5 (patch)
tree215941ac312ea0615b5cda6b5eb5907a61146547 /pkgs/development/interpreters/python/mk-python-derivation.nix
parent189af8d9229286d6dd73b5fa40aa987895e8048f (diff)
downloadnixpkgs-44d5d31d98435036d445b224ee4d56055c6515b5.tar
nixpkgs-44d5d31d98435036d445b224ee4d56055c6515b5.tar.gz
nixpkgs-44d5d31d98435036d445b224ee4d56055c6515b5.tar.bz2
nixpkgs-44d5d31d98435036d445b224ee4d56055c6515b5.tar.lz
nixpkgs-44d5d31d98435036d445b224ee4d56055c6515b5.tar.xz
nixpkgs-44d5d31d98435036d445b224ee4d56055c6515b5.tar.zst
nixpkgs-44d5d31d98435036d445b224ee4d56055c6515b5.zip
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.
Diffstat (limited to 'pkgs/development/interpreters/python/mk-python-derivation.nix')
-rw-r--r--pkgs/development/interpreters/python/mk-python-derivation.nix2
1 files changed, 0 insertions, 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.