From 6ff6d35a6978d376483f4268ce6b0e01c514c4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 May 2022 17:35:19 +0200 Subject: [PATCH] binocle: init at 0.3.0 --- pkgs/applications/misc/binocle/default.nix | 39 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/applications/misc/binocle/default.nix diff --git a/pkgs/applications/misc/binocle/default.nix b/pkgs/applications/misc/binocle/default.nix new file mode 100644 index 00000000000..ccb748fe3a6 --- /dev/null +++ b/pkgs/applications/misc/binocle/default.nix @@ -0,0 +1,39 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, makeWrapper +, xorg +, vulkan-loader +}: + +rustPlatform.buildRustPackage rec { + pname = "binocle"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "sharkdp"; + repo = pname; + rev = "v${version}"; + sha256 = "0b0hf2aq34kxxj0la0yar5sp44k6mqcbyailp6j6q0mksf1l74bc"; + }; + + cargoSha256 = "sha256-CZWAHWZYaL54Rl6Jrp8B6w6HK+2fIKQle2x4mGHv2/o="; + + nativeBuildInputs = [ + makeWrapper + ]; + + postInstall = '' + wrapProgram $out/bin/binocle \ + --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with xorg; [ libX11 libXcursor libXi libXrandr ] ++ [ vulkan-loader ])} + ''; + + meta = with lib; { + description = "Graphical tool to visualize binary data"; + homepage = "https://github.com/sharkdp/binocle"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ SuperSandro2000 ]; + broken = stdenv.isDarwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7f86640f9c6..317892e26f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1897,6 +1897,8 @@ with pkgs; betterdiscord-installer = callPackage ../tools/misc/betterdiscord-installer { }; + binocle = callPackage ../applications/misc/binocle { }; + bitwise = callPackage ../tools/misc/bitwise { }; blanket = callPackage ../applications/audio/blanket { };