depot/pkgs/by-name/bi/binsider/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

47 lines
975 B
Nix

{
lib,
darwin,
rustPlatform,
fetchFromGitHub,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "binsider";
version = "0.2.1";
src = fetchFromGitHub {
owner = "orhun";
repo = "binsider";
rev = "v${version}";
hash = "sha256-FNaYMp+vrFIziBzZ8//+ppq7kwRjBJypqsxg42XwdEs=";
};
cargoHash = "sha256-EGqoHMkBPIhKV/PozArQ62bH/Gqc92S6ZabTjmIbQeE=";
buildNoDefaultFeatures = !stdenv.isLinux;
buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
CoreServices
]
);
checkType = "debug";
checkFlags = [
"--skip=test_extract_strings"
"--skip=test_init"
];
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";
};
}