libax25: new src target and enforce strictDeps (#439888)

This commit is contained in:
Tristan Ross
2025-09-18 03:55:59 +00:00
committed by GitHub
+18 -9
View File
@@ -1,21 +1,30 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
autoreconfHook,
glibc,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libax25";
version = "0.0.12-rc5";
buildInputs = [ glibc ] ++ lib.optionals stdenv.hostPlatform.isStatic [ glibc.static ];
strictDeps = true;
# 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=";
nativeBuildInputs = [
autoreconfHook
glibc
]
++ lib.optionals stdenv.hostPlatform.isStatic [ glibc.static ];
# 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" ];
@@ -32,4 +41,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ sarcasticadmin ];
platforms = platforms.linux;
};
}
})