Skip to content

Commit

Permalink
zincsearch: 0.4.10 -> 0.4.10-unstable-2024-10-25, unbreak (#351371)
Browse files Browse the repository at this point in the history
  • Loading branch information
katexochen authored Oct 26, 2024
2 parents 96b6c6a + 158b42e commit 00c97c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{ 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 {
Expand All @@ -32,15 +33,15 @@ let
};
in

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

preBuild = ''
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 = [
Expand All @@ -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;
};
}
4 changes: 0 additions & 4 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 00c97c7

Please sign in to comment.