Merge pull request #142471 from figsoda/main-program

treewide: set meta.mainProgram
conduit-nginx
figsoda 2021-10-21 12:04:13 -04:00 committed by GitHub
commit 811da5637a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 8 deletions

View File

@ -31,5 +31,6 @@ stdenv.mkDerivation {
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ netcrns ];
mainProgram = "orca";
};
}

View File

@ -33,5 +33,6 @@ stdenv.mkDerivation rec {
license = with licenses; [ bsd2 bsd3 ];
maintainers = with maintainers; [ dochang ];
platforms = platforms.unix;
mainProgram = "editorconfig";
};
}

View File

@ -17,6 +17,7 @@ buildGoPackage rec {
homepage = "https://github.com/cbroglie/mustache";
description = "The mustache template language in Go";
license = [ licenses.mit ];
maintainers = [ maintainers.Zimmi48 ];
maintainers = with maintainers; [ Zimmi48 ];
mainProgram = "mustache";
};
}

View File

@ -1,7 +1,7 @@
{ buildGoModule, fetchFromGitHub, lib }:
let
generic = { subPackages, pname, postInstall ? "" }:
generic = { subPackages, pname, postInstall ? "", mainProgram }:
buildGoModule rec {
inherit pname;
version = "6.4.1";
@ -16,9 +16,9 @@ let
inherit subPackages postInstall;
vendorSha256 = "sha256-fStGEKAR9fzA6Uom6r59jFGTBUfTTj0TzytoJWuicbU=";
vendorSha256 = "sha256-fStGEKAR9fzA6Uom6r59jFGTBUfTTj0TzytoJWuicbU=";
doCheck = false;
doCheck = false;
ldflags = let
versionPkg = "github.com/sensu/sensu-go/version";
@ -28,6 +28,7 @@ let
];
meta = {
inherit mainProgram;
homepage = "https://sensu.io";
description = "Open source monitoring tool for ephemeral infrastructure & distributed applications";
license = lib.licenses.mit;
@ -54,15 +55,18 @@ in
) > ''${!outputBin}/share/zsh/site-functions/_sensuctl
'';
mainProgram = "sensuctl";
};
sensu-go-backend = generic {
pname = "sensu-go-backend";
subPackages = [ "cmd/sensu-backend" ];
mainProgram = "sensu-backend";
};
sensu-go-agent = generic {
pname = "sensu-go-agent";
subPackages = [ "cmd/sensu-agent" ];
mainProgram = "sensu-agent";
};
}

View File

@ -32,5 +32,6 @@ python3Packages.buildPythonApplication rec {
description = "Python script to manage Sony DPT-RP1 without Digital Paper App";
license = licenses.mit;
maintainers = with maintainers; [ mt-caret ];
mainProgram = "dptrp1";
};
}

View File

@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/skywind3000/z.lua";
description = "A new cd command that helps you navigate faster by learning your habits";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
maintainers = with maintainers; [ marsam ];
mainProgram = "z.lua";
};
}

View File

@ -1,10 +1,11 @@
{ lib, stdenv
, fetchFromGitHub
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, stdenv
, pkg-config
, openssl
, Security
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
@ -34,5 +35,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://dns.lookup.dog";
license = licenses.eupl12;
maintainers = with maintainers; [ bbigras ];
mainProgram = "dog";
};
}