Merge pull request #127802 from fortuneteller2k/elfcat

elfcat: init at 0.1.3
This commit is contained in:
Sandro 2021-06-22 17:14:00 +02:00 committed by GitHub
commit b6c99a1986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 0 deletions

7
pkgs/tools/misc/elfcat/Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "elfcat"
version = "0.1.3"

View file

@ -0,0 +1,22 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "elfcat";
version = "0.1.3";
src = fetchFromGitHub {
owner = "ruslashev";
repo = pname;
rev = version;
sha256 = "sha256-s56FyRoD2IhgdwEV63jMaB265CodHUlvmrWzmXAmonY=";
};
cargoLock.lockFile = ./Cargo.lock;
meta = with lib; {
description = "ELF visualizer, generates HTML files from ELF binaries.";
homepage = "https://github.com/ruslashev/elfcat";
license = licenses.zlib;
maintainers = with maintainers; [ fortuneteller2k ];
};
}

View file

@ -204,6 +204,8 @@ in
buf = callPackage ../development/tools/buf { };
elfcat = callPackage ../tools/misc/elfcat { };
# Zip file format only allows times after year 1980, which makes e.g. Python wheel building fail with:
# ValueError: ZIP does not support timestamps before 1980
ensureNewerSourcesForZipFilesHook = ensureNewerSourcesHook { year = "1980"; };