Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bite: migrate to new apple-sdk pattern #355556

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 19 additions & 32 deletions pkgs/by-name/bi/bite/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
pango,
vulkan-loader,
stdenv,
darwin,
wayland,
}:
rustPlatform.buildRustPackage rec {
Expand Down Expand Up @@ -49,36 +48,21 @@ rustPlatform.buildRustPackage rec {
imagemagick
];

buildInputs =
[
atk
cairo
gdk-pixbuf
glib
gtk3
libxkbcommon
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
];
buildInputs = [
atk
cairo
gdk-pixbuf
glib
gtk3
libxkbcommon
pango
vulkan-loader
] ++ lib.optionals stdenv.hostPlatform.isLinux [ wayland ];

runtimeDependencies =
[
libxkbcommon
vulkan-loader
]
++ lib.optionals stdenv.hostPlatform.isLinux [
wayland
];
runtimeDependencies = [
libxkbcommon
vulkan-loader
] ++ lib.optionals stdenv.hostPlatform.isLinux [ wayland ];

postInstall = ''
wrapProgram $out/bin/bite \
Expand All @@ -95,15 +79,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;
};
Expand Down