Unverified Commit d20f07c5 authored by Emily's avatar Emily Committed by GitHub
Browse files

laurel: 0.6.5 -> 0.7.0 (#387571)

parents 42565a80 69edf950
Loading
Loading
Loading
Loading
+3 −13
Original line number Diff line number Diff line
@@ -3,31 +3,21 @@
  fetchFromGitHub,
  lib,
  rustPlatform,
  fetchpatch2,
}:

rustPlatform.buildRustPackage rec {
  pname = "laurel";
  version = "0.6.5";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "threathunters-io";
    repo = "laurel";
    tag = "v${version}";
    hash = "sha256-1UjIye+btsNtf9Klti/3frgO7M+D05WkC1iP+TPQkZk=";
    hash = "sha256-fToxRAcZOZvuuzaaWSjweqEwdUu3K2EKXY0K2Qixqpo=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-N5mgd2c/eD0QEUQ4Oe7JI/2yI0B1pawYfc4ZKZAu4Sk=";

  patches = [
    # https://github.com/threathunters-io/laurel/commit/d2fc51c83e78aecd5c4ce922582df649c2600e1e
    # Unbreaks the userdb::test::userdb test. Will be part of the next release (likely v0.6.6).
    (fetchpatch2 {
      url = "https://github.com/threathunters-io/laurel/commit/d2fc51c83e78aecd5c4ce922582df649c2600e1e.patch?full_index=1";
      hash = "sha256-OId5ZCF71ikoCSggyy3u4USR71onFJpirp53k4M17Vo=";
    })
  ];
  cargoHash = "sha256-i5wsS7y65sIvICfgViVIAbQU9f1E0EmspX+YVKDSKOU=";

  postPatch = ''
    # Upstream started to redirect aarch64-unknown-linux-gnu to aarch64-linux-gnu-gcc