rubyPackages: set meta.mainProgram

This commit is contained in:
ilkecan 2022-08-08 19:36:27 +00:00
parent 4bdf4169ad
commit 7a75ad1e19
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 ];
@ -526,6 +538,14 @@ in
buildInputs = [ openssl ];
};
rack = attrs: {
meta.mainProgram = "rackup";
};
railties = attrs: {
meta.mainProgram = "rails";
};
rainbow = attrs: {
buildInputs = [ rainbow_rake ];
};
@ -555,15 +575,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 = [
@ -661,6 +693,10 @@ in
buildInputs = [ freetds ];
};
treetop = attrs: {
meta.mainProgram = "tt";
};
typhoeus = attrs: {
buildInputs = [ curl ];
};
@ -683,6 +719,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;
})