Created
November 17, 2022 21:41
-
-
Save wpcarro/ae819b09d06b88157847545f878965bd to your computer and use it in GitHub Desktop.
overrideAttrs question
This file contains hidden or 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
| [ | |
| { | |
| # builds | |
| bcrypt = super.bcrypt.overrideAttrs (old: { | |
| cargoDeps = pkgs.rustPlatform.fetchCargoTarball { | |
| name = "${old.pname}-${old.version}"; | |
| src = old.src; | |
| sourceRoot = "${old.pname}-${old.version}/src/_bcrypt"; | |
| sha256 = "19j1hcwr6c7r3p9b3af5dfa9m5jimxk0cwmspd692d84svmrfdcl"; | |
| }; | |
| }); | |
| } | |
| { | |
| # fails | |
| bcrypt = super.bcrypt.overrideAttrs (old: { | |
| cargoDeps = old.cargoDeps.overrideAttrs (_: { | |
| sha256 = "19j1hcwr6c7r3p9b3af5dfa9m5jimxk0cwmspd692d84svmrfdcl"; | |
| }); | |
| }); | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
probably need this: