From f64409b5ed66aad87cbf565fd4b20573d9355c74 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Sat, 12 Aug 2023 16:56:31 +0800 Subject: [PATCH] ifrextractor-rs: init at 1.5.1 https://github.com/LongSoft/IFRExtractor-RS/releases/tag/v1.5.1 --- pkgs/by-name/if/ifrextractor-rs/Cargo.lock | 32 +++++++++++++++++++++ pkgs/by-name/if/ifrextractor-rs/package.nix | 31 ++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 pkgs/by-name/if/ifrextractor-rs/Cargo.lock create mode 100644 pkgs/by-name/if/ifrextractor-rs/package.nix diff --git a/pkgs/by-name/if/ifrextractor-rs/Cargo.lock b/pkgs/by-name/if/ifrextractor-rs/Cargo.lock new file mode 100644 index 000000000000..5818fd6e1fa3 --- /dev/null +++ b/pkgs/by-name/if/ifrextractor-rs/Cargo.lock @@ -0,0 +1,32 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "ifrextractor" +version = "1.5.1" +dependencies = [ + "nom", +] + +[[package]] +name = "memchr" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" + +[[package]] +name = "nom" +version = "4.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ad2a91a8e869eeb30b9cb3119ae87773a8f4ae617f41b1eb9c154b2905f7bd6" +dependencies = [ + "memchr", + "version_check", +] + +[[package]] +name = "version_check" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" diff --git a/pkgs/by-name/if/ifrextractor-rs/package.nix b/pkgs/by-name/if/ifrextractor-rs/package.nix new file mode 100644 index 000000000000..48ab01d352fa --- /dev/null +++ b/pkgs/by-name/if/ifrextractor-rs/package.nix @@ -0,0 +1,31 @@ +{ 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 ]; + }; +}