Unverified Commit 00c97c76 authored by Paul Meyer's avatar Paul Meyer Committed by GitHub
Browse files

zincsearch: 0.4.10 -> 0.4.10-unstable-2024-10-25, unbreak (#351371)

parents 96b6c6af 158b42e3
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
, buildNpmPackage
{
  lib,
  buildGo122Module,
  fetchFromGitHub,
  buildNpmPackage,
}:

let
  version = "0.4.10";
  version = "0.4.10-unstable-2024-10-25";
  src = fetchFromGitHub {
    owner = "zinclabs";
    repo = "zincsearch";
    rev = "v${version}";
    hash = "sha256-lScwnmu4hM78Va7Yi5HA0E5f2WQXrZaeqjRYJYxnQ5E=";
    rev = "0652db6d39badc753f28ee1122dcbc0e5da1c35e";
    hash = "sha256-Py4fiZJ2fMwPe2afd19brR+62PGVoU67nMDMPlUFhKQ=";
  };

  webui = buildNpmPackage {
@@ -32,7 +33,7 @@ let
  };
in

buildGoModule rec {
buildGo122Module rec {
  pname = "zincsearch";
  inherit src version;

@@ -40,7 +41,7 @@ buildGoModule rec {
    cp -r ${webui}/share/zinc-ui web/dist
  '';

  vendorHash = "sha256-SZG5/ISGblpcwwR/HOKxFl9SthXpE+IYS0S+4HYtHos=";
  vendorHash = "sha256-JB6+sfMB7PgpPg1lmN9/0JFRLi1c7VBUMD/d4XmLIPw=";
  subPackages = [ "cmd/zincsearch" ];

  ldflags = [
@@ -55,8 +56,5 @@ buildGoModule rec {
    homepage = "https://zincsearch-docs.zinc.dev/";
    license = licenses.asl20;
    maintainers = with maintainers; [ dit7ya ];
    # Doesn't build with Go version later v1.21 (which is EOL).
    # Upstream issue: https://github.com/zincsearch/zincsearch/issues/975
    broken = true;
  };
}
+0 −4
Original line number Diff line number Diff line
@@ -14056,10 +14056,6 @@ with pkgs;
  zip = callPackage ../tools/archivers/zip { };
  zincsearch = callPackage ../servers/search/zincsearch {
    buildGoModule = buildGo122Module;
  };
  zkfuse = callPackage ../tools/filesystems/zkfuse { };
  zpaq = callPackage ../tools/archivers/zpaq { };