depot/third_party/nixpkgs/pkgs/by-name/if/ifrextractor-rs/package.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

31 lines
658 B
Nix

{ 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";
homepage = "https://github.com/LongSoft/IFRExtractor-RS";
license = licenses.bsd2;
maintainers = with maintainers; [ jiegec ];
};
}