1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/pkgs/nyastodon/default.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;
})