nixfiles/pkgs/nyastodon/default.nix

29 lines
466 B
Nix
Raw Permalink Normal View History

{
callPackage,
mastodon,
patches ? [],
2024-04-16 22:17:16 +02:00
}:
let
src = callPackage ./source.nix {
inherit patches;
2024-04-16 22:17:16 +02:00
};
yarn-deps = callPackage ./yarn.nix {
inherit src;
hash = src.yarnHash;
2024-04-16 22:17:16 +02:00
};
nyastodon = mastodon.override {
pname = "nyastodon";
srcOverride = src;
gemset = ./gemset.nix;
2024-04-16 22:17:16 +02:00
};
modules = callPackage ./modules.nix {
inherit nyastodon yarn-deps;
2024-04-16 22:17:16 +02:00
};
in
nyastodon.overrideAttrs (_: {
mastodonModules = modules;
})