Merge pull request #185702 from ilkecan/rubyPackages-set-meta-mainProgram
rubyPackages: set meta.mainProgram
This commit is contained in:
commit
bff095ca21
2 changed files with 41 additions and 0 deletions
|
@ -40,6 +40,10 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
ZenTest = attrs: {
|
||||||
|
meta.mainProgram = "zentest";
|
||||||
|
};
|
||||||
|
|
||||||
atk = attrs: {
|
atk = attrs: {
|
||||||
dependencies = attrs.dependencies ++ [ "gobject-introspection" ];
|
dependencies = attrs.dependencies ++ [ "gobject-introspection" ];
|
||||||
nativeBuildInputs = [ rake bundler pkg-config ]
|
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") {
|
pg_query = attrs: lib.optionalAttrs (attrs.version == "2.0.2") {
|
||||||
dontBuild = false;
|
dontBuild = false;
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -260,6 +268,10 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prettier = attrs: {
|
||||||
|
meta.mainProgram = "rbprettier";
|
||||||
|
};
|
||||||
|
|
||||||
glib2 = attrs: {
|
glib2 = attrs: {
|
||||||
nativeBuildInputs = [ pkg-config ]
|
nativeBuildInputs = [ pkg-config ]
|
||||||
++ lib.optionals stdenv.isDarwin [ DarwinTools ];
|
++ lib.optionals stdenv.isDarwin [ DarwinTools ];
|
||||||
|
@ -533,6 +545,14 @@ in
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rack = attrs: {
|
||||||
|
meta.mainProgram = "rackup";
|
||||||
|
};
|
||||||
|
|
||||||
|
railties = attrs: {
|
||||||
|
meta.mainProgram = "rails";
|
||||||
|
};
|
||||||
|
|
||||||
rainbow = attrs: {
|
rainbow = attrs: {
|
||||||
buildInputs = [ rainbow_rake ];
|
buildInputs = [ rainbow_rake ];
|
||||||
};
|
};
|
||||||
|
@ -562,15 +582,27 @@ in
|
||||||
buildInputs = [ re2 ];
|
buildInputs = [ re2 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rest-client = attrs: {
|
||||||
|
meta.mainProgram = "restclient";
|
||||||
|
};
|
||||||
|
|
||||||
rmagick = attrs: {
|
rmagick = attrs: {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ imagemagick which ];
|
buildInputs = [ imagemagick which ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rouge = attrs: {
|
||||||
|
meta.mainProgram = "rougify";
|
||||||
|
};
|
||||||
|
|
||||||
rpam2 = attrs: {
|
rpam2 = attrs: {
|
||||||
buildInputs = [ linux-pam ];
|
buildInputs = [ linux-pam ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rspec-core = attrs: {
|
||||||
|
meta.mainProgram = "rspec";
|
||||||
|
};
|
||||||
|
|
||||||
ruby-libvirt = attrs: {
|
ruby-libvirt = attrs: {
|
||||||
buildInputs = [ libvirt pkg-config ];
|
buildInputs = [ libvirt pkg-config ];
|
||||||
buildFlags = [
|
buildFlags = [
|
||||||
|
@ -676,6 +708,10 @@ in
|
||||||
buildInputs = [ freetds ];
|
buildInputs = [ freetds ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
treetop = attrs: {
|
||||||
|
meta.mainProgram = "tt";
|
||||||
|
};
|
||||||
|
|
||||||
typhoeus = attrs: {
|
typhoeus = attrs: {
|
||||||
buildInputs = [ curl ];
|
buildInputs = [ curl ];
|
||||||
};
|
};
|
||||||
|
@ -698,6 +734,10 @@ in
|
||||||
buildInputs = [ which libossp_uuid ];
|
buildInputs = [ which libossp_uuid ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
whois = attrs: {
|
||||||
|
meta.mainProgram = "whoisrb";
|
||||||
|
};
|
||||||
|
|
||||||
xapian-ruby = attrs: {
|
xapian-ruby = attrs: {
|
||||||
# use the system xapian
|
# use the system xapian
|
||||||
dontBuild = false;
|
dontBuild = false;
|
||||||
|
|
|
@ -250,6 +250,7 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
|
||||||
meta = {
|
meta = {
|
||||||
# default to Ruby's platforms
|
# default to Ruby's platforms
|
||||||
platforms = ruby.meta.platforms;
|
platforms = ruby.meta.platforms;
|
||||||
|
mainProgram = gemName;
|
||||||
} // meta;
|
} // meta;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue