22 rustPlatform.buildRustPackage rec {
26 src = fetchFromGitHub {
30 hash = "sha256-A5NII5pLnM4BBy2L+ylXU0anqw4DpKgXmc29fcTq2z8=";
34 lockFile = ./Cargo.lock;
36 "libc-0.2.140" = "sha256-5cP25BDfkrybiZjmwmzeqd0nzdItFdNSZ4te7FdLpnk=";
37 "nix-0.26.1" = "sha256-AsOX8sLGHJNJhq0P9WDxWsNiRXgZJl15paTcGdPMQXA=";
38 "pdb-0.8.0" = "sha256-CEglHzBpS3rN7+05tS09FbBcOM0jjyvR+DWrEbvRYwE=";
39 "tree-sitter-c-0.21.0" = "sha256-7L3Ua6LBeX2492RTikKYeCNIG5e5XSrCu4UyXX1eQiI=";
40 "tree-sitter-cpp-0.21.0" = "sha256-WZy3S8+bRkpzUFpnLVp18rY5DxN70fdEPYIYx0UqJhs=";
41 "tree-sitter-rust-0.21.0" = "sha256-kZT4Hil7u4GFWImuQCt9nQJ+HL3B5yHD5wjalpDLlSE=";
63 ++ lib.optionals stdenv.isDarwin [
64 darwin.apple_sdk.frameworks.AppKit
65 darwin.apple_sdk.frameworks.CoreGraphics
66 darwin.apple_sdk.frameworks.Foundation
67 darwin.apple_sdk.frameworks.Metal
68 darwin.apple_sdk.frameworks.QuartzCore
70 ++ lib.optionals stdenv.isLinux [
79 ++ lib.optionals stdenv.isLinux [
84 wrapProgram $out/bin/bite \
85 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDependencies}"
87 mkdir -p $out/share/icons/hicolor/64x64/apps
88 convert $src/assets/iconx64.png -background black -alpha remove -alpha off $out/share/icons/hicolor/64x64/apps/bite.png
94 exec = meta.mainProgram;
97 comment = meta.description;
98 categories = ["Development" "Utility"];
103 description = "Disassembler focused on comprehensive rust support";
104 homepage = "https://github.com/WINSDK/bite";
105 license = licenses.mit;
106 maintainers = with maintainers; [vinnymeller];
107 mainProgram = "bite";
108 broken = stdenv.isDarwin && stdenv.isx86_64;