Created
November 3, 2022 10:57
-
-
Save runeksvendsen/b8d834f508e62ccac81127c05982d810 to your computer and use it in GitHub Desktop.
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
{ pkgs ? import <nixpkgs> {} }: | |
{ | |
secp256k1-bench = pkgs.secp256k1.overrideAttrs (drv: { | |
installPhase = (drv.installPhase or "mkdir $out; make install;") + '' | |
mkdir $out/bin | |
cp -a .libs $out/bin/ | |
cp bench_* $out/bin/ | |
''; | |
configureFlags = drv.configureFlags or [ ] ++ [ "--enable-benchmark=yes" ]; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment