From 91f9697f613f1df11632e52eb708847ce7e62666 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 16 Dec 2024 12:51:03 +0100 Subject: [PATCH] packaging: Only depend on Nix libs, not CLI (cherry picked from commit 6eed09254954e23ed0e0365e3101118c550be3c4) --- rust/nci.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rust/nci.nix b/rust/nci.nix index 79202c3..87392b3 100644 --- a/rust/nci.nix +++ b/rust/nci.nix @@ -6,10 +6,18 @@ drvConfig = { mkDerivation = { buildInputs = [ - config.packages.nix # stdbool.h pkgs.stdenv.cc - ]; + ] ++ + (if config.packages.nix?libs + then + let l = config.packages.nix.libs; in [ + l.nix-expr-c + l.nix-store-c + l.nix-util-c + l.nix-flake-c + ] + else [ config.packages.nix ]); nativeBuildInputs = [ pkgs.pkg-config ];