Add meta.mainProgram (#252060)

This commit is contained in:
Michael Hoang 2023-09-02 01:55:03 +10:00 committed by GitHub
parent 3d3251d43c
commit fe4d446758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View File

@ -40,6 +40,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
homepage = "https://tart.run";
license = licenses.fairsource09;
maintainers = with maintainers; [ emilytrau Enzime ];
mainProgram = finalAttrs.pname;
platforms = [ "aarch64-darwin" ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};

View File

@ -6,6 +6,7 @@
, nose
, ptyprocess
}:
buildPythonPackage rec {
pname = "vncdo";
version = "0.12.0";
@ -32,7 +33,7 @@ buildPythonPackage rec {
description = "A command line VNC client and python library";
license = licenses.mit;
maintainers = with maintainers; [ elitak ];
mainProgram = pname;
platforms = with platforms; linux ++ darwin;
};
}

View File

@ -1,18 +1,19 @@
{ lib, fetchFromGitHub, stdenv }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "passh";
version = "2020-03-18";
src = fetchFromGitHub {
owner = "clarkwang";
repo = pname;
repo = finalAttrs.pname;
rev = "7112e667fc9e65f41c384f89ff6938d23e86826c";
sha256 = "1g0rx94vqg36kp46f8v4x6jcmvdk85ds6bkrpayq772hbdm1b5z5";
};
installPhase = ''
mkdir -p $out/bin
cp passh $out/bin
cp ${finalAttrs.pname} $out/bin
'';
meta = with lib; {
@ -20,6 +21,7 @@ stdenv.mkDerivation rec {
description = "An sshpass alternative for non-interactive ssh auth";
license = licenses.gpl3;
maintainers = [ maintainers.lovesegfault ];
mainProgram = finalAttrs.pname;
platforms = platforms.unix;
};
}
})