summary refs log tree commit diff
path: root/default.nix
blob: 30b44d259741c043da030fdaa662b187669ad4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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 {
      openssl = pkgs.libressl;
    } // { };
    parameterOverrides = { };
    cargo = pkgs.callPackage ./Cargo.nix {
      defaultCrateOverrides = crateOverrides;
    };
in
builtins.mapAttrs
    (key: value: value.build.override parameterOverrides)
    cargo.workspaceMembers