about summary refs log tree commit diff
path: root/pkgs/applications/search
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2022-07-19 20:05:55 +0200
committerAstro <astro@spaceboyz.net>2022-07-19 20:05:55 +0200
commit481ad5b3c3411056941f28e3437883e3da813999 (patch)
tree19d40170835a9132f170c484fee6796aca5eef6e /pkgs/applications/search
parenta04460825ee18245c3cc41f806917f38ecf21c51 (diff)
re-Isearch: init at unstable-2022-03-24
Diffstat (limited to 'pkgs/applications/search')
-rw-r--r--pkgs/applications/search/re-isearch/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/search/re-isearch/default.nix b/pkgs/applications/search/re-isearch/default.nix
new file mode 100644
index 0000000000000..85f2186efade4
--- /dev/null
+++ b/pkgs/applications/search/re-isearch/default.nix
@@ -0,0 +1,46 @@
+{ stdenv, fetchFromGitHub, lib, db, file, libnsl }:
+
+stdenv.mkDerivation rec {
+  pname = "re-Isearch";
+  version = "unstable-2022-03-24";
+
+  src = fetchFromGitHub {
+    owner = pname;
+    repo = pname;
+    rev = "e5953ea6c84285283be3689df7065908369cdbaf";
+    sha256 = "sha256-D0PDqlWzIOHqdS2MlNzR2T5cyhiLcFlf30v6eFokoRQ=";
+  };
+
+  buildinputs = [
+    db
+    file # libmagic
+    libnsl
+  ];
+
+  makeFlags = [
+    "CC=g++" "cc=gcc" "LD=g++"
+    "INSTALL=${placeholder "out"}/bin"
+  ];
+
+  preBuild = ''
+    cd build
+    makeFlagsArray+=(
+      EXTRA_INC="-I${db.dev}/include -I${file}/include"
+      LD_PATH="-L../lib -L${db.out}/lib -L${file}/lib -L${libnsl}/lib"
+    )
+  '';
+
+  preInstall = ''
+    mkdir -p $out/{bin,lib}
+  '';
+  postInstall = ''
+    cp ../lib/*.so $out/lib/
+  '';
+
+  meta = with lib; {
+    description = "Novel multimodal search and retrieval engine";
+    homepage = "https://github.com/re-Isearch/";
+    license = licenses.asl20;
+    maintainers = [ maintainers.astro ];
+  };
+}