From fdcc07c8ceada89ec4055c1008ad853a5539dc4d Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Thu, 14 Jul 2022 13:10:59 +0200 Subject: [PATCH 1/2] xapian: 1.4.19 -> 1.4.20 --- pkgs/development/libraries/xapian/default.nix | 6 +++--- pkgs/development/libraries/xapian/tools/omega/default.nix | 6 +++--- pkgs/development/python-modules/xapian/default.nix | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/xapian/default.nix b/pkgs/development/libraries/xapian/default.nix index 4d23752b2420..21e88a713a69 100644 --- a/pkgs/development/libraries/xapian/default.nix +++ b/pkgs/development/libraries/xapian/default.nix @@ -2,14 +2,14 @@ , libuuid, zlib }: let - generic = version: sha256: stdenv.mkDerivation { + generic = version: hash: stdenv.mkDerivation { pname = "xapian"; inherit version; passthru = { inherit version; }; src = fetchurl { url = "https://oligarchy.co.uk/xapian/${version}/xapian-core-${version}.tar.xz"; - inherit sha256; + inherit hash; }; outputs = [ "out" "man" "doc" ]; @@ -38,5 +38,5 @@ let }; }; in { - xapian_1_4 = generic "1.4.19" "sha256-H8pI/KbMNSbMS6k90ZT+nBMmhXt47c+zfmjQhtcUqcM="; + xapian_1_4 = generic "1.4.20" "sha256-zivl7/cgdcgQbANA5wsQk9vOviq0LcHBvgjdOtQZRC0="; } diff --git a/pkgs/development/libraries/xapian/tools/omega/default.nix b/pkgs/development/libraries/xapian/tools/omega/default.nix index 79e5786f0488..eb03defbf2a6 100644 --- a/pkgs/development/libraries/xapian/tools/omega/default.nix +++ b/pkgs/development/libraries/xapian/tools/omega/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, pkg-config, xapian, perl, pcre, zlib, libmagic }: +{ lib, stdenv, fetchurl, pkg-config, xapian, perl, pcre2, zlib, libmagic }: stdenv.mkDerivation rec { pname = "xapian-omega"; @@ -6,10 +6,10 @@ stdenv.mkDerivation rec { src = fetchurl { url = "https://oligarchy.co.uk/xapian/${version}/xapian-omega-${version}.tar.xz"; - sha256 = "0zji8ckp4h5xdy2wbir3lvk680w1g1l4h5swmaxsx7ah12lkrjcr"; + hash = "sha256-Cf19bGCzlP0A2EcAZJlpofzDqiuIuyxsoiD9+o0liB8="; }; - buildInputs = [ xapian perl pcre zlib libmagic ]; + buildInputs = [ xapian perl pcre2 zlib libmagic ]; nativeBuildInputs = [ pkg-config ]; meta = with lib; { diff --git a/pkgs/development/python-modules/xapian/default.nix b/pkgs/development/python-modules/xapian/default.nix index a71ade1b41b7..752204760d4e 100644 --- a/pkgs/development/python-modules/xapian/default.nix +++ b/pkgs/development/python-modules/xapian/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { src = fetchurl { url = "https://oligarchy.co.uk/xapian/${version}/xapian-bindings-${version}.tar.xz"; - sha256 = "0j9awiiw9zf97r60m848absq43k37gghpyw7acxqjazfzd71fxvm"; + hash = "sha256-eGzCjQVmCyJ5VEE68OL2bk6tKgbT322rrqSERUtgHvU="; }; configureFlags = [ From e1c0a925e065484d4963ad27700dead40a35863a Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 15 Jul 2022 10:23:07 +0200 Subject: [PATCH 2/2] xapian: Add warning about xapian-omega and python3Packages.xapian --- pkgs/development/libraries/xapian/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/xapian/default.nix b/pkgs/development/libraries/xapian/default.nix index 21e88a713a69..6d617564b04e 100644 --- a/pkgs/development/libraries/xapian/default.nix +++ b/pkgs/development/libraries/xapian/default.nix @@ -38,5 +38,8 @@ let }; }; in { + # Don't forget to change the hashes in xapian-omega and + # python3Packages.xapian. They inherit the version from this package, and + # should always be built with the equivalent xapian version. xapian_1_4 = generic "1.4.20" "sha256-zivl7/cgdcgQbANA5wsQk9vOviq0LcHBvgjdOtQZRC0="; }