···1+{ lib, buildGoModule, fetchFromGitHub, makeWrapper, stdenv }:
23buildGoModule rec {
4 pname = "delve";
···1718 nativeBuildInputs = [ makeWrapper ];
1920+ hardeningDisable = [ "fortify" ];
21+22+ preCheck = ''
23+ XDG_CONFIG_HOME=$(mktemp -d)
24+ '';
25+26+ # Disable tests on Darwin as they require various workarounds.
27+ #
28+ # - Tests requiring local networking fail with or without sandbox,
29+ # even with __darwinAllowLocalNetworking allowed.
30+ # - CGO_FLAGS warnings break tests' expected stdout/stderr outputs.
31+ # - DAP test binaries exit prematurely.
32+ doCheck = !stdenv.isDarwin;
3334 postInstall = ''
35 # fortify source breaks build since delve compiles with -O0
+5-1
pkgs/tools/filesystems/go-mtpfs/default.nix
···18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ libusb1 ];
2021- checkFlags = [ "-short" ];
00002223 meta = with lib; {
24 description = "A simple FUSE filesystem for mounting Android devices as a MTP device";
···18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ libusb1 ];
2021+ preCheck = ''
22+ # Only run tests under mtp/encoding_test.go
23+ # Other tests require an Android deviced attached over USB.
24+ buildFlagsArray+=("-run" "Test(Encode|Decode|Variant).*")
25+ '';
2627 meta = with lib; {
28 description = "A simple FUSE filesystem for mounting Android devices as a MTP device";