Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created March 12, 2020 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/49ade900ee9a89669effd3b42ca1b0e9 to your computer and use it in GitHub Desktop.
Save exarkun/49ade900ee9a89669effd3b42ca1b0e9 to your computer and use it in GitHub Desktop.
withSecurity = attrs: {
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
};
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
curve25519-dalek = withSecurity;
challenge-bypass-ristretto-ffi = withSecurity;
};
buildRustCrate = (args: pkgs.buildRustCrate (args // {
inherit defaultCrateOverrides;
dontStrip = true;
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment