Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,20 @@ with pkgs;
});
};

/* If you want convenient syntax to override the derivation produced by `fetchurl`, for instance
to override just the hash of a `src` whose `url` is computed, you can replace the `fetchurl`
dependency of the outer package derivation with this one.

Example:
tk869 = (pkgs.tk-8_6.override {
fetchurl = fetchurlOverridableOutput;
tcl = tcl869; # Something overriding `tcl-8_6 to an older version
}).overrideAttrs (self: rec {
src = self.src.override { sha256 = "1d7bfkxpacy33w5nahf73lkwxqpff44w1jplg7i2gmwgiaawvjwg"; };
});
*/
fetchurlOverridableOutput = args: (makeOverridable fetchurl args);

fetchRepoProject = callPackage ../build-support/fetchrepoproject { };

fetchipfs = import ../build-support/fetchipfs {
Expand Down