lix: move lix-doc as a formal parameter

This way, it's easier to override it or pass it ourselves if needed.

Useful for test instrumentation from external scripts.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
Raito Bezarius 2024-06-09 18:17:43 +02:00
parent d713628683
commit edab8892ee

View File

@ -65,6 +65,11 @@ assert (hash == null) -> (src != null);
util-linuxMinimal,
xz,
nixosTests,
lix-doc ? callPackage ./doc {
inherit src;
version = "${version}${suffix}";
cargoHash = docCargoHash;
},
enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform,
enableStatic ? stdenv.hostPlatform.isStatic,
@ -79,11 +84,6 @@ assert (hash == null) -> (src != null);
storeDir,
}:
let
lix-doc = callPackage ./doc {
inherit src;
version = "${version}${suffix}";
cargoHash = docCargoHash;
};
self = stdenv.mkDerivation {
pname = "lix";