17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitHub {
25 sha256 = "0b0hf2aq34kxxj0la0yar5sp44k6mqcbyailp6j6q0mksf1l74bc";
28 cargoSha256 = "sha256-CZWAHWZYaL54Rl6Jrp8B6w6HK+2fIKQle2x4mGHv2/o=";
34 buildInputs = lib.optionals stdenv.isDarwin [
35 AppKit CoreFoundation CoreGraphics CoreVideo Foundation Metal QuartzCore
38 postInstall = lib.optionalString (!stdenv.isDarwin) ''
39 wrapProgram $out/bin/binocle \
40 --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with xorg; [ libX11 libXcursor libXi libXrandr ] ++ [ vulkan-loader ])}
44 description = "Graphical tool to visualize binary data";
45 homepage = "https://github.com/sharkdp/binocle";
46 license = with licenses; [ asl20 /* or */ mit ];
47 maintainers = with maintainers; [ SuperSandro2000 ];