Commit 4e64bd5e authored by Fabian Affolter's avatar Fabian Affolter
Browse files

yara: 4.1.3 -> 4.2.0-rc1

parent 200badba
Loading
Loading
Loading
Loading
+17 −9
Original line number Diff line number Diff line
@@ -14,23 +14,31 @@
}:

stdenv.mkDerivation rec {
  version = "4.1.3";
  pname = "yara";
  version = "4.2.0-rc1";

  src = fetchFromGitHub {
    owner = "VirusTotal";
    repo = "yara";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-7t2KksI3l+wFHqUSw2L4FXepMTJfTow/cTFYA47YBqY=";
    hash = "sha256-WcN6ClYO2d+/MdG06RHx3kN0o0WVAY876dJiG7CwJ8w=";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [ pcre protobufc ]
    ++ lib.optionals withCrypto [ openssl ]
    ++ lib.optionals enableMagic [ file ]
    ++ lib.optionals enableCuckoo [ jansson ]
  ;
  buildInputs = [
    pcre
    protobufc
  ] ++ lib.optionals withCrypto [
    openssl
  ] ++ lib.optionals enableMagic [
    file
  ] ++ lib.optionals enableCuckoo [
    jansson
  ];

  preConfigure = "./bootstrap.sh";