uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/servers/ursadb/default.nix
Normal file
46
pkgs/servers/ursadb/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, zeromq, cppzmq }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ursadb";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CERT-Polska";
|
||||
repo = "ursadb";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-/EK1CKJ0IR7fkKSpQkONbWcz6uhUoAwK430ljNYsV5U=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace \
|
||||
"add_executable(ursadb_test Tests.cpp)" "" \
|
||||
--replace \
|
||||
"target_link_libraries(ursadb_test ursa)" ""
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue