Document crate-specific overrides

This commit is contained in:
FireFragment 2024-05-16 19:45:45 +02:00 committed by Nicolas Mattia
parent 4d0b369475
commit aa9a011ee3
2 changed files with 14 additions and 0 deletions

View file

@ -68,6 +68,7 @@
, fetchurl
, lndir
, userAttrs
#| Some additional buildInputs/overrides individual crates require
, crateSpecificOverrides
, pkgs
}:
@ -378,6 +379,11 @@ let
};
};
# Crate-specific overrides needed for this build.
# They are merged from all the overrides of `cratesIoDependencies` defined in the `crate_specific.nix` file
#
# This can contain fields: `buildInputs`, `nativeBuildInputs`
# When changing them (eg. adding support for new ones/removing some), also update the comment in the `crate_specific.nix` file
neededCrateSpecificOverrides =
let
overridesList = builtins.map

View file

@ -1,3 +1,11 @@
# This file contains crate-specific build inputs.
#
# Each of them is an attribute with name of the crate and value being a function.
# This function gets as arguments:
# - `crateInfo` with information about the crate, such as sha256 or version
#
# Currently supported fields to return are: `buildInputs`, `nativeBuildInputs`
{ pkgs }:
{