Skip to content

Instantly share code, notes, and snippets.

@runeksvendsen
Created November 3, 2022 10:57
Show Gist options
  • Save runeksvendsen/b8d834f508e62ccac81127c05982d810 to your computer and use it in GitHub Desktop.
Save runeksvendsen/b8d834f508e62ccac81127c05982d810 to your computer and use it in GitHub Desktop.
{ 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