summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorAndrew Dunham <andrew@du.nham.ca>2023-01-07 16:14:35 -0500
committerAndrew Dunham <andrew@du.nham.ca>2023-01-07 16:18:47 -0500
commit5ff79caff9bdfb167d276b72cf2ba8325e48effe (patch)
tree683e91c9615c45477ee2344df4afb2db2fe5eccf /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentf9bce7444555bf24caad325080b9c614ba8ce0e0 (diff)
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 f949de4fbb5c5adb7f3ec085206f48a2efdd1d9a
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions