about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMateusz Wykurz <wykurz@gmail.com>2023-01-28 20:38:42 -0700
committerMateusz Wykurz <wykurz@gmail.com>2023-01-28 21:57:51 -0700
commit206eb29ca194d10eba55487a3d94e927677f07b2 (patch)
treebbfed63ead3cd89dfd8e97bfda21731ce3e70af9 /pkgs
parent86d4ecda3d27ba7760974cba5fc19715717c6bc4 (diff)
rustfilt: init at 0.2.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/rust/rustfilt/default.nix26
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/rustfilt/default.nix b/pkgs/development/tools/rust/rustfilt/default.nix
new file mode 100644
index 0000000000000..353cdcdbfdc66
--- /dev/null
+++ b/pkgs/development/tools/rust/rustfilt/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "rustfilt";
+  version = "0.2.1";
+
+  src = fetchFromGitHub {
+    owner = "luser";
+    repo = pname;
+    rev = version;
+    hash = "sha256-zb1tkeWmeMq7aM8hWssS/UpvGzGbfsaVYCOKBnAKwiQ=";
+  };
+
+  cargoSha256 = "sha256-rs2EWcvTxLVeJ0t+jLM75s+K72t+hqKzwy3oAdCZ8BE=";
+
+  meta = with lib; {
+    description = "Demangle Rust symbol names using rustc-demangle";
+    homepage = "https://github.com/luser/rustfilt";
+    license = with licenses; [ asl20 ];
+    maintainers = with maintainers; [ wykurz ];
+    mainProgram = "rustfilt";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 25c8ed9dd9cb0..6c1486ebeca25 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -11513,6 +11513,8 @@ with pkgs;
 
   rustdesk = callPackage ../applications/networking/remote/rustdesk { };
 
+  rustfilt = callPackage ../development/tools/rust/rustfilt { };
+
   rustscan = callPackage ../tools/security/rustscan {
     inherit (darwin.apple_sdk.frameworks) Security;
   };