Skip to content

Commit d6831e2

Browse files
committed
fix: override doc package
1 parent 188ffc2 commit d6831e2

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

flake.nix

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@
299299
};
300300

301301
pythonFun = import "${toString pkgs.path}/pkgs/development/interpreters/python/cpython/${infix}default.nix";
302+
pythonSrc = pkgs.fetchurl {
303+
inherit url;
304+
sha256 = hash;
305+
};
302306
python =
303307
(self.lib.applyOverrides overrides (
304308
callPackage pythonFun (
@@ -319,13 +323,15 @@
319323
)
320324
)).overrideAttrs
321325
(old: {
322-
src = pkgs.fetchurl {
323-
inherit url;
324-
sha256 = hash;
325-
};
326+
src = pythonSrc;
326327
meta = old.meta // {
327328
knownVulnerabilities = [ ];
328329
};
330+
passthru = old.passthru // {
331+
doc = old.passthru.doc.overrideAttrs {
332+
src = pythonSrc;
333+
};
334+
};
329335
});
330336
in
331337
python;

0 commit comments

Comments
 (0)