nixpkgs/pkgs/servers/mastodon
Andrew Dunham 5ff79caff9 mastodon: pass dependencies as environment variables
This makes it much easier to override components of the Mastodon
derivation to e.g. use a fork. With this change, one can use something
like the following to install a fork (with the appropriate files):

    let
      src = callPackage ./source.nix { };
    in
      (mastodon.override {
        pname = "hometown";
        version = import ./version.nix;
        srcOverride = src;
        dependenciesDir = ./.;
      }).overrideAttrs (oldAttrs: rec {
        yarnOfflineCache = fetchYarnDeps {
          yarnLock = "${src}/yarn.lock";
          sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
        };
        mastodonModules = oldAttrs.mastodonModules.overrideAttrs (oldModuleAttrs: {
          inherit yarnOfflineCache;
        });
      });

A spiritual successor to f949de4fbb
2023-01-07 16:18:47 -05:00
..
default.nix mastodon: pass dependencies as environment variables 2023-01-07 16:18:47 -05:00
gemset.nix mastodon: 3.5.3 -> 4.0.2 2022-11-17 20:05:50 +01:00
source.nix mastodon: 3.5.3 -> 4.0.2 2022-11-17 20:05:50 +01:00
update.nix
update.sh
version.nix mastodon: 3.5.3 -> 4.0.2 2022-11-17 20:05:50 +01:00