Skip to content

Commit d6211fa

Browse files
authored
Merge pull request #110 from pinarruiz/fix/doc-build
[FIX] Override doc package
2 parents a92fae2 + d6831e2 commit d6211fa

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
@@ -297,6 +297,10 @@
297297
};
298298

299299
pythonFun = import "${toString pkgs.path}/pkgs/development/interpreters/python/cpython/${infix}default.nix";
300+
pythonSrc = pkgs.fetchurl {
301+
inherit url;
302+
sha256 = hash;
303+
};
300304
python =
301305
(self.lib.applyOverrides overrides (
302306
callPackage pythonFun (
@@ -317,13 +321,15 @@
317321
)
318322
)).overrideAttrs
319323
(old: {
320-
src = pkgs.fetchurl {
321-
inherit url;
322-
sha256 = hash;
323-
};
324+
src = pythonSrc;
324325
meta = old.meta // {
325326
knownVulnerabilities = [ ];
326327
};
328+
passthru = old.passthru // {
329+
doc = old.passthru.doc.overrideAttrs {
330+
src = pythonSrc;
331+
};
332+
};
327333
});
328334
in
329335
python;

0 commit comments

Comments
 (0)