SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.03k stars 124 forks source link

nix flake is broken #248

Closed MrFoxPro closed 1 year ago

MrFoxPro commented 1 year ago
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/0vz6ilrdvf5jrwcfya9k5fksr64w8rhi-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/share/doc/p2pool -DCMAKE_INSTALL_INFODIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/include -DCMAKE_INSTALL_SBINDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/strip -DCMAKE_RANLIB=/nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/ranlib -DCMAKE_AR=/nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/zfbyapk78lixba82yj8f54bricmbiw08-p2pool-0.0.1 -DWITH_LTO=OFF 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:20 (add_subdirectory):
  The source directory

    /build/source/external/src/RandomX

  does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:26 (add_subdirectory):
  add_subdirectory given source "external/src/miniupnp/miniupnpc" which is
  not an existing directory.


-- Found CURL: /nix/store/1xalzkbzfrrw5j09qh7246khbshlgrdv-curl-7.88.0/lib/libcurl.so (found version "7.88.0")  
-- Performing Test HAVE_BUILTIN_CLZLL
-- Performing Test HAVE_BUILTIN_CLZLL - Success
-- Performing Test HAVE_BITSCANREVERSE64
-- Performing Test HAVE_BITSCANREVERSE64 - Failed
-- Performing Test HAVE_SCHED
-- Performing Test HAVE_SCHED - Failed
-- Configuring incomplete, errors occurred!
See also "/build/source/build/CMakeFiles/CMakeOutput.log".
See also "/build/source/build/CMakeFiles/CMakeError.log".
SChernykh commented 1 year ago

Did you follow the instructions in README? https://github.com/SChernykh/p2pool#nixnixos

MrFoxPro commented 1 year ago

Did you follow the instructions in README? https://github.com/SChernykh/p2pool#nixnixos

Yeah I mean it works with version 2.7 that is currently presented in nixpkgs: nix-shell -p p2pool

But using flake from this repo or running it through nix run git+https://github.com/SChernykh/p2pool?ref=master&submodules=1 causes error. I will try to investigate.

MrFoxPro commented 1 year ago

https://github.com/NixOS/nix/issues/6633

MrFoxPro commented 1 year ago

nix --version nix (Nix) 2.14.1

nix run git+https://github.com/SChernykh/p2pool?ref=master&submodules=1 => not fetching submodules nix run git+https://github.com/SChernykh/p2pool?submodules=1 => ok.

MrFoxPro commented 1 year ago

Another way to use this flake:

p2pool = {
  type = "git";
  url = "https://github.com/SChernykh/p2pool.git";
  submodules = true;
};

Closing due to Nix/upstream issue.