nixpkgs/pkgs/servers/ursadb/default.nix
Samuel Ainsworth 02c595ebdb
Prefer pname and version in mkDerivations instead of name (#123438)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: nixpkgs-review <nixpkgs-review@example.com>
2021-05-23 17:07:31 +02:00

37 lines
809 B
Nix

{ lib, stdenv, fetchurl, cmake, zeromq, cppzmq }:
stdenv.mkDerivation rec {
pname = "ursadb";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/CERT-Polska/ursadb/archive/v${version}.tar.gz";
sha256 = "10dax3mswq0x4cfrpi31b7ii7bxl536wz1j11b7f5c0zw9pjxzym";
};
installPhase = ''
mkdir -p $out/bin
cp ursadb $out/bin/
cp ursadb_new $out/bin/
cp ursadb_trim $out/bin/
'';
nativeBuildInputs = [
cmake
];
buildInputs = [
zeromq
cppzmq
];
meta = with lib; {
homepage = "https://github.com/CERT-Polska/ursadb";
description = "Trigram database written in C++, suited for malware indexing";
license = licenses.bsd3;
maintainers = with maintainers; [ msm ];
platforms = platforms.unix;
broken = stdenv.isDarwin;
};
}