mirror of
https://github.com/nix-community/naersk
synced 2025-02-16 11:18:23 +00:00
Document crate-specific overrides
This commit is contained in:
parent
4d0b369475
commit
aa9a011ee3
2 changed files with 14 additions and 0 deletions
|
@ -68,6 +68,7 @@
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, lndir
|
, lndir
|
||||||
, userAttrs
|
, userAttrs
|
||||||
|
#| Some additional buildInputs/overrides individual crates require
|
||||||
, crateSpecificOverrides
|
, crateSpecificOverrides
|
||||||
, pkgs
|
, 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 =
|
neededCrateSpecificOverrides =
|
||||||
let
|
let
|
||||||
overridesList = builtins.map
|
overridesList = builtins.map
|
||||||
|
|
|
@ -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 }:
|
{ pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue