crate2nix is now available in Nixpkgs, so we use it from there, allowing us to drop our workaround preventing the dependency upon LLVM, etc.
WZYPQBYNIUDLMMCQCVVFF7W2LE4UC3PZ2MIIRPEPHZPDWCXSDZOQC
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);
"crate2nix": {
"flake": false,
"locked": {
"lastModified": 1585431696,
"narHash": "sha256-pqg1BsEq3kGmUzt1zpQvXgdnRcIsiuIyvtUBi3VxtZ4=",
"owner": "kolloch",
"repo": "crate2nix",
"rev": "0fd65ca7def611ad9d0ee532be0954d4b0bbb4d4",
"type": "github"
},
"original": {
"owner": "kolloch",
"ref": "0.8.0",
"repo": "crate2nix",
"type": "github"
}
},