File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 185185 } ;
186186
187187 inherit corepack-shims ;
188+
189+ eradicate2 = callPackage ./eradicate2 { } ;
188190 }
189191 // lib . optionalAttrs hostPlatform . isLinux rec {
190192 kurtosis = callPackage ./kurtosis/default.nix { } ;
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ opencl-headers ,
6+ ocl-icd ,
7+ openssl ,
8+ } :
9+
10+ stdenv . mkDerivation rec {
11+ pname = "eradicate2" ;
12+ version = "0.4" ;
13+
14+ src = fetchFromGitHub {
15+ owner = "johguse" ;
16+ repo = "ERADICATE2" ;
17+ rev = "v${ version } " ;
18+ hash = "sha256-ILBhW4/Ia0MR2/XHKxpL5mXCmcczJUBEOva8KFxWhvs=" ;
19+ } ;
20+
21+ buildInputs = [
22+ opencl-headers
23+ ocl-icd
24+ openssl
25+ ] ;
26+
27+ postPatch = ''
28+ sed -i '/#include <string>/a #include <cstdint>' hexadecimal.hpp
29+ sed -i '/#include <stdexcept>/a #include <cstdint>' hexadecimal.cpp
30+ '' ;
31+
32+ installPhase = ''
33+ runHook preInstall
34+
35+ mkdir -p $out/bin
36+ install -m 755 ERADICATE2.x64 $out/bin/eradicate2
37+
38+ runHook postInstall
39+ '' ;
40+
41+ meta = {
42+ description = "Vanity address generator for CREATE2 addresses" ;
43+ homepage = "https://github.com/johguse/ERADICATE2" ;
44+ license = lib . licenses . unfree ;
45+ maintainers = with lib . maintainers ; [ ] ;
46+ mainProgram = "eradicate2" ;
47+ platforms = lib . platforms . all ;
48+ } ;
49+ }
You can’t perform that action at this time.
0 commit comments