diff options
author | Janik H <janik@aq0.de> | 2023-04-19 13:21:21 +0200 |
---|---|---|
committer | Janik H <janik@aq0.de> | 2023-04-19 22:10:50 +0200 |
commit | 89c5cfec7d24dbcfb8ab9a7c3d8766c86aac9c0a (patch) | |
tree | 6e72c7c51e0e7a30a78df0f0be90637fb813a4fa /pkgs/servers/osmocom | |
parent | ffd24c84f28d8c8ff047a2bffee5e3bca020f0dd (diff) |
osmo-iuh: init at 1.4.0
Diffstat (limited to 'pkgs/servers/osmocom')
-rw-r--r-- | pkgs/servers/osmocom/osmo-iuh/default.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/servers/osmocom/osmo-iuh/default.nix b/pkgs/servers/osmocom/osmo-iuh/default.nix new file mode 100644 index 0000000000000..8f38383196e65 --- /dev/null +++ b/pkgs/servers/osmocom/osmo-iuh/default.nix @@ -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; + }; +} |