push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/cmd/dlv/main.go b/cmd/dlv/main.go
index 2207708e..a7e8a3c2 100644
--- a/cmd/dlv/main.go
+++ b/cmd/dlv/main.go
@@ -21,6 +21,8 @@ func main() {
version.DelveVersion.Build = Build
}
+ os.Setenv("disableHardening", "fortify "+os.Getenv("disableHardening"))
+
const cgoCflagsEnv = "CGO_CFLAGS"
if os.Getenv(cgoCflagsEnv) == "" {
os.Setenv(cgoCflagsEnv, "-O0 -g")

View File

@@ -0,0 +1,54 @@
{
lib,
buildGoModule,
fetchFromGitHub,
stdenv,
}:
buildGoModule rec {
pname = "delve";
version = "1.25.2";
src = fetchFromGitHub {
owner = "go-delve";
repo = "delve";
rev = "v${version}";
hash = "sha256-CtOaaYxqa4GwfDQ1yuUwRQPy948Xyha046TLTaq526w=";
};
patches = [
./disable-fortify.diff
];
vendorHash = null;
subPackages = [ "cmd/dlv" ];
hardeningDisable = [ "fortify" ];
preCheck = ''
XDG_CONFIG_HOME=$(mktemp -d)
'';
# Disable tests on Darwin as they require various workarounds.
#
# - Tests requiring local networking fail with or without sandbox,
# even with __darwinAllowLocalNetworking allowed.
# - CGO_FLAGS warnings break tests' expected stdout/stderr outputs.
# - DAP test binaries exit prematurely.
doCheck = !stdenv.hostPlatform.isDarwin;
postInstall = ''
# add symlink for vscode golang extension
# https://github.com/golang/vscode-go/blob/master/docs/debugging.md#manually-installing-dlv-dap
ln $out/bin/dlv $out/bin/dlv-dap
'';
meta = with lib; {
description = "Debugger for the Go programming language";
homepage = "https://github.com/go-delve/delve";
maintainers = with maintainers; [ vdemeester ];
license = licenses.mit;
mainProgram = "dlv";
};
}