Skip to content

Commit

Permalink
[Backport release-24.11] bite: 0.2.1 -> 0.3, fix x86_64-darwin build (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored Nov 24, 2024
2 parents b2745cc + 64fc155 commit 846cdd3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 16 deletions.
23 changes: 20 additions & 3 deletions pkgs/by-name/bi/bite/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 11 additions & 13 deletions pkgs/by-name/bi/bite/package.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
apple-sdk_15,
rustPlatform,
fetchFromGitHub,
pkg-config,
Expand All @@ -16,18 +17,17 @@
pango,
vulkan-loader,
stdenv,
darwin,
wayland,
}:
rustPlatform.buildRustPackage rec {
pname = "bite";
version = "0.2.1";
version = "0.3";

src = fetchFromGitHub {
owner = "WINSDK";
repo = "bite";
rev = "V${version}";
hash = "sha256-A5NII5pLnM4BBy2L+ylXU0anqw4DpKgXmc29fcTq2z8=";
hash = "sha256-gio4J+V8achSuR2vQa2dnvOR/u4Zbb5z0UE0xP0gGCU=";
};

cargoLock = {
Expand Down Expand Up @@ -60,15 +60,11 @@ rustPlatform.buildRustPackage rec {
pango
vulkan-loader
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.CoreGraphics
darwin.apple_sdk.frameworks.Foundation
darwin.apple_sdk.frameworks.Metal
darwin.apple_sdk.frameworks.QuartzCore
]
++ lib.optionals stdenv.hostPlatform.isLinux [
wayland
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_15
];

runtimeDependencies =
Expand All @@ -95,16 +91,18 @@ rustPlatform.buildRustPackage rec {
icon = "bite";
desktopName = "BiTE";
comment = meta.description;
categories = ["Development" "Utility"];
categories = [
"Development"
"Utility"
];
})
];

meta = with lib; {
description = "Disassembler focused on comprehensive rust support";
homepage = "https://github.com/WINSDK/bite";
license = licenses.mit;
maintainers = with maintainers; [vinnymeller];
maintainers = with maintainers; [ vinnymeller ];
mainProgram = "bite";
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;
};
}

0 comments on commit 846cdd3

Please sign in to comment.