2023-08-12 10:56:31 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ifrextractor-rs";
|
|
|
|
version = "1.5.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LongSoft";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-zpoOThjkL2Hu/ytxdqWcr2GXzN4Cm8hph7PJhSF5BlU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rust utility to extract UEFI IFR data into human-readable text";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "ifrextractor";
|
2023-08-12 10:56:31 +02:00
|
|
|
homepage = "https://github.com/LongSoft/IFRExtractor-RS";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ jiegec ];
|
|
|
|
};
|
|
|
|
}
|