acme-dns: 1.1 -> 1.1-unstable-2024-12-15, unpin Go builder, mark broken on darwin

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
Paul Meyer
2025-04-02 09:30:56 +02:00
parent 14b235a1fb
commit 46f46dd8f7
2 changed files with 18 additions and 8 deletions
+17 -5
View File
@@ -3,20 +3,30 @@
buildGoModule,
fetchFromGitHub,
nixosTests,
stdenv,
}:
buildGoModule rec {
pname = "acme-dns";
version = "1.0";
# Unstable version to allow building with toolchains later than EOL Go 1.22,
# see https://github.com/joohoi/acme-dns/issues/365
version = "1.1-unstable-2024-12-15";
src = fetchFromGitHub {
owner = "joohoi";
repo = pname;
rev = "v${version}";
hash = "sha256-qQwvhouqzkChWeu65epgoeMNqZyAD18T+xqEMgdMbhA=";
repo = "acme-dns";
rev = "b7a0a8a7bcef39f6158dd596fe716594a170d362";
hash = "sha256-UApFNcU6a6nzpwbIJv1LLmXVTGLzY0HQBlRATq2s9x8=";
};
vendorHash = "sha256-q/P+cH2OihvPxPj2XWeLsTBHzQQABp0zjnof+Ys/qKo=";
# Fetching of goModules fails with 'go: updates to go.mod needed'
postPatch = ''
substituteInPlace go.mod \
--replace-fail 'go 1.22' 'go 1.22.0' \
--replace-fail 'toolchain go1.22.0' 'toolchain go1.24.1'
'';
vendorHash = "sha256-pKEOmMF1lvm/CU1n3ykh6YvtRNH/2i+0AvOJzq8eets=";
postInstall = ''
install -D -m0444 -t $out/lib/systemd/system ./acme-dns.service
@@ -32,5 +42,7 @@ buildGoModule rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ emilylange ];
mainProgram = "acme-dns";
# Tests time out on darwin.
broken = stdenv.hostPlatform.isDarwin;
};
}
+1 -3
View File
@@ -1031,9 +1031,7 @@ with pkgs;
_7zz = darwin.apple_sdk_11_0.callPackage ../tools/archivers/7zz { };
_7zz-rar = _7zz.override { enableUnfree = true; };
acme-dns = callPackage ../servers/dns/acme-dns/default.nix {
buildGoModule = buildGo122Module; # https://github.com/joohoi/acme-dns/issues/365
};
acme-dns = callPackage ../servers/dns/acme-dns/default.nix { };
acquire = with python3Packages; toPythonApplication acquire;