aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 455dd3e04e09f5e03431a784d0a4378832853b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  pkgs ? import <nixpkgs> {},
  callPackage ? pkgs.callPackage,
  defaultCrateOverrides ? pkgs.defaultCrateOverrides,
  buildRustCrate ? pkgs.buildRustCrate
}:

let
  customBuildRustCrateForPkgs = pkgs: pkgs.buildRustCrate.override {
    defaultCrateOverrides = defaultCrateOverrides // {
      # leaving this dead override for future reference
      # funky-things = attrs: {
      #   buildInputs = [ pkgs.openssl ];
      # };
    };
  };

  cargo = import ./Cargo.nix {
    inherit pkgs;
    buildRustCrateForPkgs = customBuildRustCrateForPkgs;
  };
in
  cargo.rootCrate.build