mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
![]() 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
|
||
---|---|---|
.. | ||
applications | ||
build-support | ||
common-updater | ||
data | ||
desktops | ||
development | ||
games | ||
misc | ||
os-specific | ||
pkgs-lib | ||
servers | ||
shells | ||
stdenv | ||
test | ||
tools | ||
top-level |