Unverified Commit 28b018d9 authored by Leona Maroni's avatar Leona Maroni
Browse files

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.
parent f9bf90c4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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 = ''