aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/default.nix b/default.nix
index 72b6ff2..d4555de 100644
--- a/default.nix
+++ b/default.nix
@@ -4,12 +4,18 @@
buildRustCrate ? pkgs.buildRustCrate }:
let
- overrides = defaultCrateOverrides // {
- };
- cargo = callPackage ./Cargo.nix {
- buildRustCrate = buildRustCrate.override {
- defaultCrateOverrides = overrides;
+ 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