Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{inputs, ...}: { imports = [ inputs.rust-flake.flakeModules.default inputs.rust-flake.flakeModules.nixpkgs # inputs.process-compose-flake.flakeModule # inputs.cargo-doc-live.flakeModule ]; perSystem = { config, self', pkgs, lib, ... }: let inherit (pkgs.stdenv) isDarwin; inherit (pkgs.darwin) apple_sdk;
# Common configuration for all crates globalCrateConfig = { crane.clippy.enable = false; };
# Common build inputs for all crates commonBuildInputs = with pkgs; [ ] ++ lib.optionals isDarwin ( with apple_sdk.frameworks; [ IOKit Security SystemConfiguration ] ); in { rust-project = { # Source filtering to avoid unnecessary rebuilds src = lib.cleanSourceWith { src = inputs.self; filter = config.rust-project.crane-lib.filterCargoSources; }; crates = { "jacquard-talk" = { imports = [globalCrateConfig]; autoWire = ["crate" "clippy"]; path = ./../..; crane = { args = { buildInputs = commonBuildInputs; }; }; }; }; }; packages.default = self'.packages.jacquard-talk; };}