litecoin.nix 996 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. { pkgs }:
  2. pkgs.stdenv.mkDerivation rec {
  3. pname = "litecoin";
  4. version = "v0.21.4";
  5. src = fetchGit {
  6. url = "https://github.com/litecoin-project/litecoin.git";
  7. ref = "refs/tags/${version}";
  8. };
  9. nativeBuildInputs = [
  10. pkgs.autoconf
  11. pkgs.automake
  12. pkgs.libtool
  13. pkgs.pkg-config
  14. # pkgs.hexdump # for tests
  15. ];
  16. buildInputs = [
  17. pkgs.boost
  18. pkgs.libevent
  19. pkgs.fmt
  20. pkgs.db4
  21. pkgs.openssl
  22. pkgs.sqlite
  23. ];
  24. preConfigure = [
  25. "./autogen.sh"
  26. ];
  27. configureFlags = [
  28. "--without-gui"
  29. "--with-sqlite"
  30. "--disable-bench"
  31. "--disable-tests"
  32. "--with-boost-libdir=${pkgs.boost.out}/lib"
  33. ];
  34. buildFlags = [
  35. "src/litecoind"
  36. "src/litecoin-cli"
  37. ];
  38. enableParallelBuilding = true;
  39. installPhase = ''
  40. mkdir -p $out/bin
  41. install -D --mode=755 src/litecoind src/litecoin-cli $out/bin
  42. '';
  43. }