summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorr-vdp <ramses@well-founded.dev>2025-04-28 12:06:48 +0200
committerr-vdp <ramses@well-founded.dev>2025-04-29 10:29:19 +0200
commit5a2bd826f84d26f257ce8aae4ec8709ce817c0f4 (patch)
tree983eac8ca1a0ff78d1c71fbd6ad83de9b6909bdc /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentbafb63cdaa4b88bb63c2457e2160f99c3d7c2f7c (diff)
prometheus: use finalAttrs to make the version and webui overridable
This makes it possible to override the version and have the right webui assets. It also makes sure that the right version is used in other places of the derivation. Overriding now can be done like this: ```nix final: prev: prometheus = prev.prometheus.overrideAttrs ( finalAttrs: prevAttrs: { version = "3.1.0"; src = final.fetchFromGitHub { owner = "prometheus"; repo = "prometheus"; tag = "v${finalAttrs.version}"; hash = ""; }; vendorHash = ""; webUiStatic = final.fetchurl { url = "https://github.com/prometheus/prometheus/releases/download/v${finalAttrs.version}/prometheus-web-ui-${finalAttrs.version}.tar.gz"; hash = ""; }; } ); ``` Whereas before you'd have to copy over things like the postPatch hook.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions