forked from 10gic/vanitygen-plusplus
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
26 lines (21 loc) · 778 Bytes
/
default.nix
File metadata and controls
26 lines (21 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
with import <nixpkgs> {};
# fastStdenv.mkDerivation { # for faster running times (8-12%) BUT... nondeterministic builds :(
stdenv.mkDerivation {
name = "vanitygen++";
src = ./.;
enableParallelBuilding = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gcc pcre openssl opencl-clhpp ocl-icd curl curlpp ];
buildPhase = ''
make all
'';
# for a generic copy of all compiled executables:
# cp $(find * -maxdepth 1 -executable -type f) $out/bin/
installPhase = ''
mkdir -p $out/bin
cp keyconv oclvanitygen++ oclvanityminer vanitygen++ $out/bin/
'';
}
# to run this on nix/nixos, just run `nix-build` in the directory containing this file
# and then run any executable in the result/bin directory
# e.g. `./result/bin/vanitygen++ -h`