forked from emily/nixfiles
28 lines
466 B
Nix
28 lines
466 B
Nix
{
|
|
callPackage,
|
|
mastodon,
|
|
patches ? [],
|
|
}:
|
|
let
|
|
src = callPackage ./source.nix {
|
|
inherit patches;
|
|
};
|
|
|
|
yarn-deps = callPackage ./yarn.nix {
|
|
inherit src;
|
|
hash = src.yarnHash;
|
|
};
|
|
|
|
nyastodon = mastodon.override {
|
|
pname = "nyastodon";
|
|
srcOverride = src;
|
|
gemset = ./gemset.nix;
|
|
};
|
|
|
|
modules = callPackage ./modules.nix {
|
|
inherit nyastodon yarn-deps;
|
|
};
|
|
in
|
|
nyastodon.overrideAttrs (_: {
|
|
mastodonModules = modules;
|
|
})
|