discourse.mkDiscoursePlugin: allow overriding pluginName
discourse.plugins.discourse-ldap-auth has the interesting situation that it – as only package – only has `ldap` as name and not prefixed with `discourse-`. I feel like having a `ldap` derivation without further context is bad, so I went this way.
This commit is contained in:
@@ -122,9 +122,12 @@ let
|
||||
);
|
||||
in
|
||||
stdenv.mkDerivation (
|
||||
removeAttrs args [ "bundlerEnvArgs" ]
|
||||
// {
|
||||
# Allow overriding the plugin name
|
||||
{
|
||||
pluginName = if name != null then name else "${pname}-${version}";
|
||||
}
|
||||
// removeAttrs args [ "bundlerEnvArgs" ]
|
||||
// {
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user