osmo-iuh: init at 1.4.0
This commit is contained in:
parent
ffd24c84f2
commit
89c5cfec7d
62
pkgs/servers/osmocom/osmo-iuh/default.nix
Normal file
62
pkgs/servers/osmocom/osmo-iuh/default.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, libosmocore
|
||||
, lksctp-tools
|
||||
, libosmo-netif
|
||||
, libosmo-sccp
|
||||
, libasn1c
|
||||
, python3
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (stdenv) isLinux;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "osmo-iuh";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "osmocom";
|
||||
repo = "osmo-iuh";
|
||||
rev = "${version}";
|
||||
hash = "sha256-AwLLfG+5JgvFSBddzyUQdPDFZOX1uQyDSyr4O/wTlgs=";
|
||||
};
|
||||
|
||||
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-sccp
|
||||
libasn1c
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "Osmocom IuH library";
|
||||
homepage = "https://osmocom.org/projects/osmohnbgw/wiki";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
maintainers = with lib.maintainers; [ janik ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
@ -32862,6 +32862,8 @@ with pkgs;
|
||||
|
||||
osmo-hlr = callPackage ../servers/osmocom/osmo-hlr { };
|
||||
|
||||
osmo-iuh = callPackage ../servers/osmocom/osmo-iuh { };
|
||||
|
||||
osmo-mgw = callPackage ../servers/osmocom/osmo-mgw { };
|
||||
|
||||
osmo-msc = callPackage ../servers/osmocom/osmo-msc { };
|
||||
|
Loading…
Reference in New Issue
Block a user