about summary refs log tree commit diff
path: root/pkgs/tools/misc/elfcat
diff options
context:
space:
mode:
authorfortuneteller2k <lythe1107@gmail.com>2021-06-22 21:42:26 +0800
committerfortuneteller2k <lythe1107@gmail.com>2021-06-22 22:19:17 +0800
commitdc24124ec662659f63ad79a3873e3be7ebc1b495 (patch)
tree183c1cb528b855130c560f5b3bd4c3a4d88d3b4d /pkgs/tools/misc/elfcat
parent76d2fd44d0039c4cba894af1fa8c47cc390764f5 (diff)
elfcat: init at 0.1.3
Diffstat (limited to 'pkgs/tools/misc/elfcat')
-rw-r--r--pkgs/tools/misc/elfcat/Cargo.lock7
-rw-r--r--pkgs/tools/misc/elfcat/default.nix22
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/elfcat/Cargo.lock b/pkgs/tools/misc/elfcat/Cargo.lock
new file mode 100644
index 0000000000000..e6c694bffb330
--- /dev/null
+++ b/pkgs/tools/misc/elfcat/Cargo.lock
@@ -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"
diff --git a/pkgs/tools/misc/elfcat/default.nix b/pkgs/tools/misc/elfcat/default.nix
new file mode 100644
index 0000000000000..38b1cc9b64f05
--- /dev/null
+++ b/pkgs/tools/misc/elfcat/default.nix
@@ -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 ];
+  };
+}