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:
Leona Maroni
2025-10-29 20:28:10 +01:00
parent f9bf90c4b5
commit 28b018d923
+5 -2
View File
@@ -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 = ''