File tree Expand file tree Collapse file tree 3 files changed +84
-0
lines changed Expand file tree Collapse file tree 3 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ } :
6+
7+ stdenv . mkDerivation rec {
8+ pname = "eradicate3" ;
9+ version = "unstable-2024-07-18" ;
10+
11+ src = fetchFromGitHub {
12+ owner = "1inch" ;
13+ repo = "ERADICATE3" ;
14+ rev = "2a8ec5dc09b72144d0834a99151eacda7387fc9e" ;
15+ hash = "sha256-eWgr8iteXOYkJ/m+qYEnx5Twg72d3gj15Jg2mUA+d20=" ;
16+ } ;
17+
18+ meta = {
19+ description = "Vanity address generator for CREATE3 addresses" ;
20+ homepage = "https://github.com/1inch/ERADICATE3" ;
21+ license = lib . licenses . unfree ; # FIXME: nix-init did not find a license
22+ maintainers = with lib . maintainers ; [ ] ;
23+ mainProgram = "eradicate3" ;
24+ platforms = lib . platforms . all ;
25+ } ;
26+ }
Original file line number Diff line number Diff line change 185185 } ;
186186
187187 inherit corepack-shims ;
188+
189+ eradicate3 = callPackage ./eradicate3 { } ;
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 = "eradicate3" ;
12+ version = "unstable-2024-07-18" ;
13+
14+ src = fetchFromGitHub {
15+ owner = "1inch" ;
16+ repo = "ERADICATE3" ;
17+ rev = "2a8ec5dc09b72144d0834a99151eacda7387fc9e" ;
18+ hash = "sha256-eWgr8iteXOYkJ/m+qYEnx5Twg72d3gj15Jg2mUA+d20=" ;
19+ } ;
20+
21+ buildInputs = [
22+ opencl-headers
23+ ocl-icd
24+ openssl
25+ ] ;
26+
27+ postPatch =
28+ ''
29+ sed -i '/#include <string>/a #include <cstdint>' hexadecimal.hpp
30+ sed -i '/#include <stdexcept>/a #include <cstdint>' hexadecimal.cpp
31+
32+ if [[ "$OSTYPE" == "darwin"* ]]; then
33+ sed -i 's/&p, NULL/p, NULL/' Dispatcher.cpp
34+ fi
35+ ''
36+ + lib . optionalString ( stdenv . isAarch64 && stdenv . isDarwin ) ''sed -i 's/ -mmmx//g' Makefile'' ;
37+
38+ preBuild = ''
39+ mkdir -p $out/bin
40+ '' ;
41+
42+ makeFlags = [
43+ "EXECUTABLE=${ placeholder "out" } /bin/eradicate3"
44+ "CC=$(CXX)"
45+ ] ;
46+
47+ dontInstall = true ;
48+
49+ meta = with lib ; {
50+ description = "Vanity address generator for CREATE3 addresses" ;
51+ homepage = "https://github.com/1inch/ERADICATE3" ;
52+ license = licenses . unfree ;
53+ mainProgram = "eradicate3" ;
54+ platforms = platforms . linux ++ platforms . darwin ;
55+ } ;
56+ }
You can’t perform that action at this time.
0 commit comments