17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitHub {
25 sha256 = "sha256-WAk7xIrCRfVofn4w+gP5E3wnSZbXm/6MZWlNmtoLm20=";
28 cargoHash = "sha256-ZmY88WcoQiDLSXkBbnE/+jPX713qh6n+nyNXeWWTBKA=";
34 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
35 AppKit CoreFoundation CoreGraphics CoreVideo Foundation Metal QuartzCore
38 postInstall = lib.optionalString (!stdenv.hostPlatform.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 mainProgram = "binocle";
46 homepage = "https://github.com/sharkdp/binocle";
47 license = with licenses; [ asl20 /* or */ mit ];
48 maintainers = with maintainers; [ figsoda ];