Skip to content

Conversation

@MartinNikov
Copy link
Contributor

@MartinNikov MartinNikov commented Jul 28, 2025

This PR packages blocksense-network/ERADICATE2 (diff w/ upstream).

nix build output
nix build -L --json .#eradicate2
eradicate2-unstable> Running phase: unpackPhase
eradicate2-unstable> unpacking source archive /nix/store/dz0n4gq2na0q39w1brh24rciqxp5kqqm-source
eradicate2-unstable> source root is source
eradicate2-unstable> Running phase: patchPhase
eradicate2-unstable> Running phase: updateAutotoolsGnuConfigScriptsPhase
eradicate2-unstable> Running phase: configurePhase
eradicate2-unstable> no configure script, doing nothing
eradicate2-unstable> Running phase: buildPhase
eradicate2-unstable> build flags: SHELL=/nix/store/r8b3f0ag2x5shpplx4731rmrf8spnzqx-bash-5.2p37/bin/bash
eradicate2-unstable> Cleaning 'build/'...
eradicate2-unstable>   rm -rf build
eradicate2-unstable>   ✅ done
eradicate2-unstable> 
eradicate2-unstable> Embedding OpenCL kernels...
eradicate2-unstable>   ./embed-in-cpp.sh eradicate2.cl build/eradicate2.cl.h
eradicate2-unstable>   ./embed-in-cpp.sh keccak.cl build/keccak.cl.h
eradicate2-unstable>   ✅ done
eradicate2-unstable> 
eradicate2-unstable> Compiling C++ files...
eradicate2-unstable>   c++ -std=c++11 -Wall -O2 -Ibuild -c Dispatcher.cpp -o build/Dispatcher.o
eradicate2-unstable>   c++ -std=c++11 -Wall -O2 -Ibuild -c eradicate2.cpp -o build/eradicate2.o
eradicate2-unstable>   c++ -std=c++11 -Wall -O2 -Ibuild -c hexadecimal.cpp -o build/hexadecimal.o
eradicate2-unstable>   c++ -std=c++11 -Wall -O2 -Ibuild -c ModeFactory.cpp -o build/ModeFactory.o
eradicate2-unstable>   c++ -std=c++11 -Wall -O2 -Ibuild -c Speed.cpp -o build/Speed.o
eradicate2-unstable>   c++ -std=c++11 -Wall -O2 -Ibuild -c sha3.cpp -o build/sha3.o
eradicate2-unstable>   ✅ done
eradicate2-unstable> 
eradicate2-unstable> Linking executable...
eradicate2-unstable>   c++ -framework OpenCL -o build/eradicate2 build/Dispatcher.o build/eradicate2.o build/hexadecimal.o build/ModeFactory.o build/Speed.o build/sha3.o
eradicate2-unstable>   ✅ done
eradicate2-unstable> 
eradicate2-unstable> Successfully built:
eradicate2-unstable>   build/eradicate2
eradicate2-unstable> Running phase: installPhase
eradicate2-unstable> Running phase: fixupPhase
eradicate2-unstable> checking for references to /private/tmp/nix-build-eradicate2-unstable-2025-08-05.drv-0/ in /nix/store/2sbqkdr9f8mv5wffwby3rnimimsdmlvm-eradicate2-unstable-2025-08-05...
eradicate2-unstable> patching script interpreter paths in /nix/store/2sbqkdr9f8mv5wffwby3rnimimsdmlvm-eradicate2-unstable-2025-08-05
eradicate2-unstable> stripping (with command strip and flags -S) in  /nix/store/2sbqkdr9f8mv5wffwby3rnimimsdmlvm-eradicate2-unstable-2025-08-05/bin
[{"drvPath":"/nix/store/qjh6xmdvfhr5y2mfpwsdsz0lr9ya6cpl-eradicate2-unstable-2025-08-05.drv","outputs":{"out":"/nix/store/q0cvr5j7k14zpb2jqgfxzcg02vczwy2j-eradicate2-unstable-2025-08-05"},"startTime":1754410223,"stopTime":1754410225}]
nix run .#eradicate2 -- --help

usage: ./ERADICATE2 [OPTIONS]

  Input:
	-A, --address           Target address
	-I, --init-code         Init code
	-i, --init-code-file    Read init code from this file

	The init code should be expressed as a hexadecimal string having the
	prefix 0x both when expressed on the command line with -I and in the
	file pointed to by -i if used. Any whitespace will be trimmed. If no
	init code is specified it defaults to an empty string.
  ...
nix run .#eradicate2 -- -A 0x00000000000000000000000000000000deadbeef -I 0x00 --leading 0
Devices:
  GPU0: Apple M4 Max, 28991029248 bytes available, 32 compute units

Initializing OpenCL...
  Creating context...OK
  Compiling kernel...OK
  Building program...OK

Running...

  Time:     0s Score:  5 Salt: 0x8155f9991b95b00571163347b020deb58fe1ed107d112da7319cc664f63af3a7 Address: 0x00000b27f1531b48c1a286d6e8d10e88cccb5592
  Time:     0s Score:  6 Salt: 0x8155f9991b95b0eba61e3348b020deb58fe1ed107d112da7319cc664f63af3a7 Address: 0x0000006bfe02ba31262ace798c9a3acefde9b24d
  Time:     0s Score:  7 Salt: 0x8155f9991b95b07805ba334bb020deb58fe1ed107d112da7319cc664f63af3a7 Address: 0x00000003342548e56611958be7ceed4d9bcfb464
Speed: 598.933 MH/s GPU0: 598.933 MH/s

reo101
reo101 previously approved these changes Jul 28, 2025
@MartinNikov MartinNikov force-pushed the feat/pkgs/eradicate2 branch 7 times, most recently from 22a1826 to 17e691a Compare July 28, 2025 13:52
@MartinNikov MartinNikov changed the title feat(packages): Add eradicate2 package feat(packages): Add eradicate3 package Jul 28, 2025
@MartinNikov MartinNikov force-pushed the feat/pkgs/eradicate2 branch from 17e691a to 8b64b5c Compare July 28, 2025 14:06
@PetarKirov PetarKirov force-pushed the feat/pkgs/eradicate2 branch from 8b64b5c to a68aa9f Compare August 5, 2025 16:05
@PetarKirov PetarKirov changed the title feat(packages): Add eradicate3 package feat(packages): Add eradicate2 package Aug 5, 2025
@PetarKirov PetarKirov force-pushed the feat/pkgs/eradicate2 branch 3 times, most recently from c5e75a3 to 5541ad8 Compare August 5, 2025 18:04
@PetarKirov PetarKirov force-pushed the feat/pkgs/eradicate2 branch from 5541ad8 to a360bf2 Compare August 5, 2025 18:06
@PetarKirov PetarKirov enabled auto-merge (rebase) August 5, 2025 18:08
@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Thanks for your Pull Request!

Below you will find a summary of the cachix status of each package, for each supported platform.

package x86_64-linux x86_64-darwin aarch64-darwin
avalanche-cli ✅ cached ✅ cached ✅ cached
blst ✅ cached ✅ cached ✅ cached
cardano ✅ cached ✅ cached 🚫 not supported
cdt ✅ cached 🚫 not supported 🚫 not supported
circom ✅ cached ✅ cached ✅ cached
circom_runtime ✅ cached ✅ cached ✅ cached
corepack-shims ✅ cached ✅ cached ✅ cached
cosmos-theta-testnet ✅ cached ✅ cached ✅ cached
emscripten ✅ cached ✅ cached ✅ cached
eos-vm ✅ cached 🚫 not supported 🚫 not supported
eradicate2 ✅ cached ✅ cached ✅ cached
ffiasm ✅ cached ✅ cached 🚫 not supported
ffiasm-src ✅ cached ✅ cached 🚫 not supported
gaiad ✅ cached ✅ cached ✅ cached
graphql ✅ cached ✅ cached 🚫 not supported
jolt ✅ cached 🚫 not supported 🚫 not supported
jolt-guest-rust ✅ cached 🚫 not supported 🚫 not supported
kurtosis ✅ cached 🚫 not supported 🚫 not supported
nexus ✅ cached 🚫 not supported 🚫 not supported
pistache ✅ cached 🚫 not supported 🚫 not supported
polkadot ❌ build failed ❌ build failed ❌ build failed
polkadot-fast ✅ cached ✅ cached ✅ cached
rapidsnark ✅ cached ✅ cached 🚫 not supported
rapidsnark-gpu ✅ cached 🚫 not supported 🚫 not supported
rapidsnark-server ✅ cached 🚫 not supported 🚫 not supported
risc0 ✅ cached 🚫 not supported 🚫 not supported
risc0-rust ✅ cached 🚫 not supported 🚫 not supported
sp1 ✅ cached 🚫 not supported 🚫 not supported
sp1-rust ✅ cached 🚫 not supported 🚫 not supported
wasmd ✅ cached 🚫 not supported 🚫 not supported
zkm ✅ cached 🚫 not supported 🚫 not supported
zkm-rust ✅ cached 🚫 not supported 🚫 not supported
zkwasm ✅ cached 🚫 not supported 🚫 not supported
zqfield-bn254 ✅ cached ✅ cached 🚫 not supported

@PetarKirov PetarKirov merged commit 8c7d3e2 into main Aug 5, 2025
10 checks passed
@PetarKirov PetarKirov deleted the feat/pkgs/eradicate2 branch August 5, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants