diff options
Diffstat (limited to 'pkgs/by-name/bi/binsider/package.nix')
-rw-r--r-- | pkgs/by-name/bi/binsider/package.nix | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/pkgs/by-name/bi/binsider/package.nix b/pkgs/by-name/bi/binsider/package.nix index 3b85edb9b6e7..74b5b0e38e42 100644 --- a/pkgs/by-name/bi/binsider/package.nix +++ b/pkgs/by-name/bi/binsider/package.nix @@ -1,26 +1,38 @@ { lib, + darwin, rustPlatform, fetchFromGitHub, stdenv, }: rustPlatform.buildRustPackage rec { pname = "binsider"; - version = "0.1.0"; + version = "0.2.1"; src = fetchFromGitHub { owner = "orhun"; repo = "binsider"; rev = "v${version}"; - hash = "sha256-+QgbSpiDKPTVdSm0teEab1O6OJZKEDpC2ZIZ728e69Y="; + hash = "sha256-FNaYMp+vrFIziBzZ8//+ppq7kwRjBJypqsxg42XwdEs="; }; - cargoHash = "sha256-lXYTZ3nvLrfEgo7AY/qSQYpXsyrdJuQQw43xREezNn0="; + cargoHash = "sha256-EGqoHMkBPIhKV/PozArQ62bH/Gqc92S6ZabTjmIbQeE="; - # Tests need the executable in target/debug/ - preCheck = '' - cargo build - ''; + 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"; @@ -31,6 +43,5 @@ rustPlatform.buildRustPackage rec { ]; maintainers = with maintainers; [ samueltardieu ]; mainProgram = "binsider"; - broken = stdenv.isDarwin || stdenv.isAarch64; }; } |