-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from pmarreck/master
add a default.nix build file for easy builds of this on nix/nixOS
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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` |