Unverified Commit 84eab1ac authored by Pavol Rusnak's avatar Pavol Rusnak Committed by GitHub
Browse files

bitcoin-knots: 28.1.knots20250305 -> 29.1.knots20250903 (#443212)

parents 8fc50952 ddd0e61d
Loading
Loading
Loading
Loading
+17 −18
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  stdenv,
  fetchurl,
  fetchFromGitHub,
  autoreconfHook,
  pkg-config,
  util-linux,
  hexdump,
@@ -23,29 +22,30 @@
  withGui,
  withWallet ? true,
  gnupg,
  cmake,
  # Signatures from the following GPG public keys checked during verification of the source code.
  # The list can be found at https://github.com/bitcoinknots/guix.sigs/tree/knots/builder-keys
  builderKeys ? [
    "1A3E761F19D2CC7785C5502EA291A2C45D0C504A" # luke-jr.gpg
    "32FE1E61B1C711186CA378DEFD8981F1BC41ABB9" # oomahq.gpg
    "CACC7CBB26B3D2EE8FC2F2BC0E37EBAB8574F005" # leo-haf.gpg
    "55058E8947E136A64F9E8AD5C4512A878E4AC2BF" # nsvrn
    "DAED928C727D3E613EC46635F5073C4F4882FFFC" # leo-haf.gpg
  ],
}:

stdenv.mkDerivation (finalAttrs: {
  pname = if withGui then "bitcoin-knots" else "bitcoind-knots";
  version = "28.1.knots20250305";
  version = "29.1.knots20250903";

  src = fetchurl {
    url = "https://bitcoinknots.org/files/28.x/${finalAttrs.version}/bitcoin-${finalAttrs.version}.tar.gz";
    url = "https://bitcoinknots.org/files/29.x/${finalAttrs.version}/bitcoin-${finalAttrs.version}.tar.gz";
    # hash retrieved from signed SHA256SUMS
    hash = "sha256-DKO3+43Tn/BTKQVrLrCkeMtzm8SfbaJD8rPlb6lDA8A=";
    hash = "sha256-2DlJlGNrCOe8UouZ+TLdZ2OahU18AWL6K/KI1YA29QY=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    gnupg
    cmake
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [ util-linux ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [ hexdump ]
@@ -76,18 +76,18 @@ stdenv.mkDerivation (finalAttrs: {
      publicKeys = fetchFromGitHub {
        owner = "bitcoinknots";
        repo = "guix.sigs";
        rev = "b998306d462f39b6077518521700d7156fec76b8";
        sha256 = "sha256-q4tumAfTr828AZNOa9ia7Y0PYoe6W47V/7SEApTzl3w=";
        rev = "d441685d5179b91070fadbc764be3a41616f36df";
        sha256 = "sha256-XO/E51yOFrRYrGnxsyH/ZPF4Yf192x+lT2FPdilkacA=";
      };

      checksums = fetchurl {
        url = "https://bitcoinknots.org/files/${majorVersion}.x/${finalAttrs.version}/SHA256SUMS";
        hash = "sha256-xWJKaZBLm9H6AuMBSC21FLy/5TRUI0AQVIUF/2PvDhs=";
        hash = "sha256-CH5p+u2XvIpWC/yv+UrP3JSq/dcAxq/eCZ+fPzqaI+Q=";
      };

      signatures = fetchurl {
        url = "https://bitcoinknots.org/files/${majorVersion}.x/${finalAttrs.version}/SHA256SUMS.asc";
        hash = "sha256-SywdBEzZqsf2aDeOs7J9n513RTCm+TJA/QYP5+h7Ifo=";
        hash = "sha256-abCiaE3etiXfqC1nrmHMP77HO94L+ZZv4B2s08p1d2k=";
      };

      verifyBuilderKeys =
@@ -117,19 +117,18 @@ stdenv.mkDerivation (finalAttrs: {
    '';

  configureFlags = [
    "--with-boost-libdir=${boost.out}/lib"
    "--disable-bench"
    (lib.cmakeBool "BUILD_BENCH" false)
  ]
  ++ lib.optionals (!finalAttrs.doCheck) [
    "--disable-tests"
    "--disable-gui-tests"
    (lib.cmakeBool "BUILD_TESTS" false)
    (lib.cmakeBool "BUILD_GUI_TESTS" false)
  ]
  ++ lib.optionals (!withWallet) [
    "--disable-wallet"
    (lib.cmakeBool "ENABLE_WALLET" false)
  ]
  ++ lib.optionals withGui [
    "--with-gui=qt5"
    "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
    (lib.cmakeBool "BUILD_GUI" true)
    (lib.cmakeFeature "WITH_QT_VERSION" "5")
  ];

  nativeCheckInputs = [ python3 ];