packaging: Only depend on Nix libs, not CLI
(cherry picked from commit 6eed09254954e23ed0e0365e3101118c550be3c4)
This commit is contained in:
parent
122ee75ce3
commit
91f9697f61
1 changed files with 10 additions and 2 deletions
12
rust/nci.nix
12
rust/nci.nix
|
|
@ -6,10 +6,18 @@
|
||||||
drvConfig = {
|
drvConfig = {
|
||||||
mkDerivation = {
|
mkDerivation = {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
config.packages.nix
|
|
||||||
# stdbool.h
|
# stdbool.h
|
||||||
pkgs.stdenv.cc
|
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 = [
|
nativeBuildInputs = [
|
||||||
pkgs.pkg-config
|
pkgs.pkg-config
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue