mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
32 lines
692 B
Nix
32 lines
692 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";
|
|
mainProgram = "ifrextractor";
|
|
homepage = "https://github.com/LongSoft/IFRExtractor-RS";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ jiegec ];
|
|
};
|
|
}
|