Created
March 12, 2020 11:51
-
-
Save exarkun/49ade900ee9a89669effd3b42ca1b0e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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