summary refs log tree commit diff
path: root/default.nix
blob: 2ab3b66c6e81998b48eec55a0e85c1e55d317197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Use `nix-build`, not `nix build`, when doing development on this file. It
# does a better job of propagating error messages from the build tools upward.

let pkgs = import <nixpkgs> { };
    crateOverrides = pkgs.defaultCrateOverrides.override {
    } // { };
    parameterOverrides = { };
    cargo = pkgs.callPackage ./Cargo.nix {
      defaultCrateOverrides = crateOverrides;
    };
in
builtins.mapAttrs
    (key: value: value.build.override parameterOverrides)
    cargo.workspaceMembers