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
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
libosmocore,
|
|
lksctp-tools,
|
|
libosmo-netif,
|
|
libosmo-sigtran,
|
|
libasn1c,
|
|
python3,
|
|
}:
|
|
|
|
let
|
|
inherit (stdenv.hostPlatform) isLinux;
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "osmo-iuh";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmocom";
|
|
repo = "osmo-iuh";
|
|
rev = version;
|
|
hash = "sha256-3ADn0GSoXPXL1gD79JjD2hXNBN/v8aaEKgf5qFNGEJs=";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace src/../asn1/utils/asn1tostruct.py \
|
|
--replace '#!/usr/bin/env python3' '#!${python3}/bin/python3'
|
|
'';
|
|
|
|
postPatch = ''
|
|
echo "${version}" > .tarball-version
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
libosmocore
|
|
lksctp-tools
|
|
libosmo-netif
|
|
libosmo-sigtran
|
|
libasn1c
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Osmocom IuH library";
|
|
homepage = "https://osmocom.org/projects/osmohnbgw/wiki";
|
|
license = lib.licenses.agpl3Plus;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|