Skip to content

Commit 8c7d3e2

Browse files
feat(packages): Add eradicate2 package
Co-authored-by: Martin Nikov <[email protected]>
1 parent bcfa767 commit 8c7d3e2

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

packages/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@
185185
};
186186

187187
inherit corepack-shims;
188+
189+
eradicate2 = callPackage ./eradicate2 { };
188190
}
189191
// lib.optionalAttrs hostPlatform.isLinux rec {
190192
kurtosis = callPackage ./kurtosis/default.nix { };

packages/eradicate2/default.nix

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
opencl-headers,
6+
ocl-icd,
7+
}:
8+
9+
stdenv.mkDerivation rec {
10+
pname = "eradicate2";
11+
version = "unstable-2025-08-05";
12+
13+
src = fetchFromGitHub {
14+
owner = "blocksense-network";
15+
repo = "ERADICATE2";
16+
rev = "3f22332b81f36ef021b016b1b54e8540db3fdc91";
17+
hash = "sha256-A38nAtQfyxFPmxiojnoj6xOnfWK+FHKucYDuP/7/tjQ=";
18+
};
19+
20+
buildInputs = lib.optionals stdenv.isLinux [
21+
opencl-headers
22+
ocl-icd
23+
];
24+
25+
postPatch = ''
26+
patchShebangs --build ./embed-in-cpp.sh
27+
'';
28+
29+
installPhase = ''
30+
install -Dm 755 ./build/eradicate2 $out/bin/eradicate2
31+
'';
32+
33+
meta = with lib; {
34+
description = "Vanity address generator for CREATE2 addresses";
35+
homepage = "https://github.com/blocksense-network/ERADICATE2";
36+
license = licenses.unfree;
37+
mainProgram = "eradicate2";
38+
platforms = platforms.linux ++ platforms.darwin;
39+
};
40+
}

0 commit comments

Comments
 (0)