emilylange 2024-03-16 03:28:30 +01:00
parent 48d2318214
commit 56be60c27b
No known key found for this signature in database
GPG key ID: 0AD773CE46FD0F87

View file

@ -1,33 +1,21 @@
{ acl
, fetchFromGitHub
, fetchpatch
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "laurel";
version = "0.6.0";
version = "0.6.1";
src = fetchFromGitHub {
owner = "threathunters-io";
repo = "laurel";
rev = "refs/tags/v${version}";
hash = "sha256-lWVrp0ytomrQBSDuQCMFJpSuAuwjSYPwoE4yh/WO2ls=";
hash = "sha256-dGgBcugIQ3ZPnqyTw6wRMN2PZLm6GqobeFZ1/uzMKbs=";
};
cargoHash = "sha256-GY7vpst+Epsy/x/ths6pwtGQgM6Bx0KI+NsCMFCBujE=";
cargoPatches = [
# Upstream forgot to bump the Cargo.lock before tagging the release.
# This patch is the first commit immediately after the tag fixing this mistake.
# Needs to be removed next release.
(fetchpatch {
name = "Cargo-lock-version-bump.patch";
url = "https://github.com/threathunters-io/laurel/commit/f38393d1098e8f75394f83ad3da5c1160fb96652.patch";
hash = "sha256-x+7p21X38KYqLclFtGnLO5nOHz819+XTaSPMvDbSo/I=";
})
];
cargoHash = "sha256-8JNLssWTCfwrfQ/jg/rj7BUo9bCNCsM2RDwPI7cacRw=";
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = [ acl ];