The default.nix in crate2nix brings in its own version of cargo and LLVM. This change allows us to use just the cargo2nix binary, which reduces the closures-size of the devShell considerably.
2GNO2PLCZ3BM5RRRSPLGVWEWHOOTVT4VKFBNNQMUKOKF3VXL3ZFQC
crate2nix = forAllSystems ({ pkgs, ... }:
import inputs.crate2nix { inherit pkgs; });
crate2nix = forAllSystems ({ system, ... }:
let
sources = import "${inputs.crate2nix}/nix/sources.nix";
pkgs = import sources.nixpkgs { inherit system; };
cargoNix = import "${inputs.crate2nix}/crate2nix/Cargo.nix" {
inherit pkgs;
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
cssparser-macros = { ... }: {
buildInputs = with pkgs;
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
};
};
};
in
cargoNix.rootCrate.build);