installPreloadPhase = ''
cp ${preloadFile plugins} $out/inc/preload.php
'';
- passthru.plugins = plugins;
- passthru.withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ passthru = old.passthru // {
+ inherit plugins;
+ withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ };
});
package = stdenv.mkDerivation (mylibs.fetchedGithub ./dokuwiki.json // rec {
phases = "unpackPhase buildPhase installPhase installPreloadPhase fixupPhase";
"ln -sf ${value} $out/plugins/${value.pluginName}"
) plugins
));
- passthru.plugins = plugins;
- passthru.withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ passthru = old.passthru // {
+ inherit plugins;
+ withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ };
});
package = stdenv.mkDerivation rec {
name = "mantisbt-${version}";
map (value: "ln -s ${value} mediagoblin/plugins/${value.pluginName}") plugins
)
);
- passthru.plugins = plugins;
- passthru.withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ passthru = old.passthru // {
+ inherit plugins;
+ withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ };
});
package = stdenv.mkDerivation (mylibs.fetchedGit ./mediagoblin.json // rec {
preConfigure = ''
map (value: "ln -sf ${value} $out/apps/${value.appName}") apps
));
- passthru.otherConfig = with lib.attrsets; with lib.lists; let
- zipped = zipAttrs ([old.otherConfig or {}] ++ map (v: v.otherConfig) apps);
- in
- {
- mimetypealiases = foldr (h: prev: prev // h) {} zipped.mimetypealiases;
- mimetypemapping = mapAttrs (_: v: unique (flatten v)) (zipAttrs zipped.mimetypemapping);
- };
- passthru.apps = apps;
- passthru.withApps = moreApps: old.withApps (moreApps ++ apps);
+ passthru = old.passthru // {
+ otherConfig = with lib.attrsets; with lib.lists; let
+ zipped = zipAttrs ([old.otherConfig or {}] ++ map (v: v.otherConfig) apps);
+ in
+ {
+ mimetypealiases = foldr (h: prev: prev // h) {} zipped.mimetypealiases;
+ mimetypemapping = mapAttrs (_: v: unique (flatten v)) (zipAttrs zipped.mimetypemapping);
+ };
+ inherit apps;
+ withApps = moreApps: old.withApps (moreApps ++ apps);
+ };
});
package = stdenv.mkDerivation rec {
builtins.concatStringsSep "\n" (
map (value: "ln -s ${value} $out/user/plugins/${value.pluginName}") plugins
);
- passthru.plugins = plugins;
- passthru.withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ passthru = old.passthru // {
+ inherit plugins;
+ withPlugins = morePlugins: old.withPlugins (morePlugins ++ plugins);
+ };
});
package = stdenv.mkDerivation (mylibs.fetchedGithub ./yourls.json // rec {
installPhase = ''