3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #185702 from ilkecan/rubyPackages-set-meta-mainProgram

rubyPackages: set meta.mainProgram
This commit is contained in:
Mario Rodas 2022-10-06 22:14:04 -05:00 committed by GitHub
commit bff095ca21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View file

@ -40,6 +40,10 @@ let
in
{
ZenTest = attrs: {
meta.mainProgram = "zentest";
};
atk = attrs: {
dependencies = attrs.dependencies ++ [ "gobject-introspection" ];
nativeBuildInputs = [ rake bundler pkg-config ]
@ -241,6 +245,10 @@ in
'';
};
parser = attrs: {
meta.mainProgram = "ruby-parse";
};
pg_query = attrs: lib.optionalAttrs (attrs.version == "2.0.2") {
dontBuild = false;
postPatch = ''
@ -260,6 +268,10 @@ in
'';
};
prettier = attrs: {
meta.mainProgram = "rbprettier";
};
glib2 = attrs: {
nativeBuildInputs = [ pkg-config ]
++ lib.optionals stdenv.isDarwin [ DarwinTools ];
@ -533,6 +545,14 @@ in
buildInputs = [ openssl ];
};
rack = attrs: {
meta.mainProgram = "rackup";
};
railties = attrs: {
meta.mainProgram = "rails";
};
rainbow = attrs: {
buildInputs = [ rainbow_rake ];
};
@ -562,15 +582,27 @@ in
buildInputs = [ re2 ];
};
rest-client = attrs: {
meta.mainProgram = "restclient";
};
rmagick = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ imagemagick which ];
};
rouge = attrs: {
meta.mainProgram = "rougify";
};
rpam2 = attrs: {
buildInputs = [ linux-pam ];
};
rspec-core = attrs: {
meta.mainProgram = "rspec";
};
ruby-libvirt = attrs: {
buildInputs = [ libvirt pkg-config ];
buildFlags = [
@ -676,6 +708,10 @@ in
buildInputs = [ freetds ];
};
treetop = attrs: {
meta.mainProgram = "tt";
};
typhoeus = attrs: {
buildInputs = [ curl ];
};
@ -698,6 +734,10 @@ in
buildInputs = [ which libossp_uuid ];
};
whois = attrs: {
meta.mainProgram = "whoisrb";
};
xapian-ruby = attrs: {
# use the system xapian
dontBuild = false;

View file

@ -250,6 +250,7 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
meta = {
# default to Ruby's platforms
platforms = ruby.meta.platforms;
mainProgram = gemName;
} // meta;
})