48 lines
975 B
Nix
48 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";
|
||
|
};
|
||
|
}
|