From c9e9bf4e5669209d53bae37203196a4dc514880e Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Tue, 17 Feb 2026 15:24:55 +0100 Subject: [PATCH] fix: Deduplicate nix-shell inputs to fix "Argument list too long" error --- template/shell.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/shell.nix b/template/shell.nix index 7ef77f28..b6ee3afb 100644 --- a/template/shell.nix +++ b/template/shell.nix @@ -21,10 +21,10 @@ in pkgs.mkShell rec { ]; # derivation runtime dependencies - buildInputs = pkgs.lib.concatMap (crate: crate.buildInputs) cargoDependencySet; + buildInputs = pkgs.lib.unique (pkgs.lib.concatMap (crate: crate.buildInputs) cargoDependencySet); # build time dependencies - nativeBuildInputs = pkgs.lib.concatMap (crate: crate.nativeBuildInputs) cargoDependencySet ++ (with pkgs; [ + nativeBuildInputs = pkgs.lib.unique (pkgs.lib.concatMap (crate: crate.nativeBuildInputs) cargoDependencySet ++ (with pkgs; [ beku docker gettext # for the proper envsubst @@ -38,7 +38,7 @@ in pkgs.mkShell rec { # tilt already defined in default.nix which yq-go - ]); + ])); LIBCLANG_PATH = "${pkgs.libclang.lib}/lib"; BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.clang}/resource-root/include";