1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = "v${finalAttrs.version}";
11 hash = "sha256-5kVci9o1jUDpbTgMuach8AjXCKhTglcgsywHt3yoo2Y=";
12 fetchSubmodules = true;
16 substituteInPlace CMakeLists.txt \
17 --replace "add_executable(ursadb_test src/Tests.cpp)" "" \
18 --replace "target_link_libraries(ursadb_test ursa)" "" \
19 --replace "target_enable_ipo(ursadb_test)" "" \
20 --replace "target_clangformat_setup(ursadb_test)" "" \
21 --replace 'target_include_directories(ursadb_test PUBLIC ${"$"}{CMAKE_SOURCE_DIR})' "" \
22 --replace "ursadb_test" ""
30 homepage = "https://github.com/CERT-Polska/ursadb";
31 description = "Trigram database written in C++, suited for malware indexing";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ msm ];
34 platforms = platforms.unix;
35 broken = stdenv.isDarwin;