Add `meta.mainProgram` (#252060)

authored by Michael Hoang and committed by GitHub fe4d4467 3d3251d4

+9 -5
+1
pkgs/applications/virtualization/tart/default.nix
··· 40 40 homepage = "https://tart.run"; 41 41 license = licenses.fairsource09; 42 42 maintainers = with maintainers; [ emilytrau Enzime ]; 43 + mainProgram = finalAttrs.pname; 43 44 platforms = [ "aarch64-darwin" ]; 44 45 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 45 46 };
+2 -1
pkgs/development/python-modules/vncdo/default.nix
··· 6 6 , nose 7 7 , ptyprocess 8 8 }: 9 + 9 10 buildPythonPackage rec { 10 11 pname = "vncdo"; 11 12 version = "0.12.0"; ··· 32 33 description = "A command line VNC client and python library"; 33 34 license = licenses.mit; 34 35 maintainers = with maintainers; [ elitak ]; 36 + mainProgram = pname; 35 37 platforms = with platforms; linux ++ darwin; 36 38 }; 37 - 38 39 }
+6 -4
pkgs/tools/networking/passh/default.nix
··· 1 1 { lib, fetchFromGitHub, stdenv }: 2 - stdenv.mkDerivation rec { 2 + 3 + stdenv.mkDerivation (finalAttrs: { 3 4 pname = "passh"; 4 5 version = "2020-03-18"; 5 6 6 7 src = fetchFromGitHub { 7 8 owner = "clarkwang"; 8 - repo = pname; 9 + repo = finalAttrs.pname; 9 10 rev = "7112e667fc9e65f41c384f89ff6938d23e86826c"; 10 11 sha256 = "1g0rx94vqg36kp46f8v4x6jcmvdk85ds6bkrpayq772hbdm1b5z5"; 11 12 }; 12 13 13 14 installPhase = '' 14 15 mkdir -p $out/bin 15 - cp passh $out/bin 16 + cp ${finalAttrs.pname} $out/bin 16 17 ''; 17 18 18 19 meta = with lib; { ··· 20 21 description = "An sshpass alternative for non-interactive ssh auth"; 21 22 license = licenses.gpl3; 22 23 maintainers = [ maintainers.lovesegfault ]; 24 + mainProgram = finalAttrs.pname; 23 25 platforms = platforms.unix; 24 26 }; 25 - } 27 + })