From 864ea663407b79aa8e6e17545cb94871c7817bc7 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Wed, 11 Sep 2024 15:32:10 +0200 Subject: [PATCH] binsider: init at 0.1.0 --- pkgs/by-name/bi/binsider/package.nix | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/bi/binsider/package.nix diff --git a/pkgs/by-name/bi/binsider/package.nix b/pkgs/by-name/bi/binsider/package.nix new file mode 100644 index 0000000000000..3b85edb9b6e7c --- /dev/null +++ b/pkgs/by-name/bi/binsider/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + stdenv, +}: +rustPlatform.buildRustPackage rec { + pname = "binsider"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "orhun"; + repo = "binsider"; + rev = "v${version}"; + hash = "sha256-+QgbSpiDKPTVdSm0teEab1O6OJZKEDpC2ZIZ728e69Y="; + }; + + cargoHash = "sha256-lXYTZ3nvLrfEgo7AY/qSQYpXsyrdJuQQw43xREezNn0="; + + # Tests need the executable in target/debug/ + preCheck = '' + cargo build + ''; + + meta = with lib; { + description = "Analyzer of executables using a terminal user interface"; + homepage = "https://github.com/orhun/binsider"; + license = with licenses; [ + asl20 # or + mit + ]; + maintainers = with maintainers; [ samueltardieu ]; + mainProgram = "binsider"; + broken = stdenv.isDarwin || stdenv.isAarch64; + }; +}