-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
binary-ninja: init at 4.2.6455 #360314
base: master
Are you sure you want to change the base?
binary-ninja: init at 4.2.6455 #360314
Conversation
136f208
to
cfc994e
Compare
@ofborg build binary-ninja |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/4898 |
|
||
mkdir -p $out/bin | ||
cp ./binaryninja $out/bin | ||
wrapProgram $out/bin/binaryninja --prefix LD_LIBRARY_PATH ":" ${libs} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we not using autopatchelfhook?
This doesn't work under wayland:
By the way, there has been another PR to add the free version of binary ninja: #322496 (wayland works in this one), which uses autoPatchelfHook. Also, shouldn't this be named |
733f525
to
900cdc5
Compare
I agree with the suggestions re: attribute name. Took major inspiration from #322496 but fixed it up and made the closure smaller with (as far as I can tell) no runtime issues. |
xcbutilrenderutil | ||
xcbutilwm | ||
]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a .desktop
file for binary ninja (see linux-setup.sh for the desktop file generation they use in the personal version)
For example:
nativeBuildInputs = [
# .....
copyDesktopItems
];
icon = fetchurl {
url = "https://raw.githubusercontent.com/Vector35/binaryninja-api/448f40be71dffa86a6581c3696627ccc1bdf74f2/docs/img/logo.png";
hash = "sha256-TzGAAefTknnOBj70IHe64D6VwRKqIDpL4+o9kTw0Mn4=";
};
desktopItems = [
(makeDesktopItem {
name = "com.vector35.binaryninja";
desktopName = "Binary Ninja Free";
comment = "A Reverse Engineering Platform";
exec = "binaryninja";
icon = "binaryninja";
mimeTypes = [ "application/x-binaryninja" "x-scheme-handler/binaryninja" ];
categories = [ "Utility" ];
})
];
installPhase = ''
# .....
install -Dm644 ${icon} $out/share/icons/hicolor/256x256/apps/binaryninja.png
runHook postInstall
'';
900cdc5
to
9f29f3d
Compare
Added icon, thanks very much for the example |
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.