Unverified Commit 668d9558 authored by Morgan Jones's avatar Morgan Jones
Browse files

mattermost: fix update script attributes

Since we now have a wrapper derivation, we need to expose the inner
attributes to make the update script happy.
parent c32142f4
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -42,10 +42,17 @@ let
      wrapMattermost =
        server:
        stdenvNoCC.mkDerivation {
          pname = "${server.pname}-wrapped";
          inherit (server) version;
          inherit server;
          inherit (server) webapp;

          # src and npmDeps must be provided for the update script!
          inherit (server)
            pname
            version
            src
            npmDeps
            webapp
            meta
            ;

          dontUnpack = true;

@@ -59,12 +66,7 @@ let
            done
          '';

          passthru = finalPassthru // {
            inherit server;
            inherit (server) webapp;
          };

          inherit (server) meta;
          passthru = finalPassthru;
        };
      finalPassthru =
        let