mx-sanebot: further simplify build for when cargoDocsetHook doesn't exist
This commit is contained in:
parent
b5b32fde95
commit
afdf3442b4
|
@ -1,5 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, cargoDocsetHook ? null
|
, cargoDocsetHook ? emptyDirectory
|
||||||
|
, emptyDirectory
|
||||||
, openssl
|
, openssl
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
|
@ -11,7 +12,7 @@ rustPlatform.buildRustPackage {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
cargoLock.lockFile = ./Cargo.lock;
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ] ++ lib.optional (cargoDocsetHook != null) cargoDocsetHook;
|
nativeBuildInputs = [ pkg-config cargoDocsetHook ];
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
# enables debug builds, if we want: https://github.com/NixOS/nixpkgs/issues/60919.
|
# enables debug builds, if we want: https://github.com/NixOS/nixpkgs/issues/60919.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user