From 0d439bef6f145960aa00554aab4b363f56e0ae36 Mon Sep 17 00:00:00 2001 From: Robert James Hernandez Date: Wed, 3 Sep 2025 12:58:15 +0000 Subject: [PATCH] libax25: move src to radiocatalog Moving to a mirror of the src at radiocatalog on GitHub since https://linux-ax25.in-berlin.de is unreliable. failures: - https://nixpkgs-update-logs.nix-community.org/libax25/2025-08-22.log - https://nixpkgs-update-logs.nix-community.org/libax25/2025-09-01.log --- pkgs/by-name/li/libax25/package.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/li/libax25/package.nix b/pkgs/by-name/li/libax25/package.nix index 15a9d11f33b1..be7d38f6d153 100644 --- a/pkgs/by-name/li/libax25/package.nix +++ b/pkgs/by-name/li/libax25/package.nix @@ -1,7 +1,8 @@ { lib, stdenv, - fetchurl, + fetchFromGitHub, + autoreconfHook, glibc, }: @@ -9,13 +10,19 @@ stdenv.mkDerivation rec { pname = "libax25"; version = "0.0.12-rc5"; - buildInputs = [ glibc ] ++ lib.optionals stdenv.hostPlatform.isStatic [ glibc.static ]; + nativeBuildInputs = [ + autoreconfHook + glibc + ] + ++ lib.optionals stdenv.hostPlatform.isStatic [ glibc.static ]; - # Due to recent unsolvable administrative domain problems with linux-ax25.org, - # the new domain is linux-ax25.in-berlin.de - src = fetchurl { - url = "https://linux-ax25.in-berlin.de/pub/ax25-lib/libax25-${version}.tar.gz"; - hash = "sha256-vxV5GVDOHr38N/512ArZpnZ+a7FTbXBNpoSJkc9DI98="; + # src from linux-ax25.in-berlin.de remote has been + # unreliable, pointing to github mirror from the radiocatalog + src = fetchFromGitHub { + owner = "radiocatalog"; + repo = "libax25"; + tag = "libax25-${finalAttrs.version}"; + hash = "sha256-MQDrroRZhtWJiu3N7FQVp5/sqe1MDjdwKu4ufnfHTUM="; }; configureFlags = [ "--sysconfdir=/etc" ];