diff --git a/pkgs/servers/osmocom/osmo-sgsn/default.nix b/pkgs/servers/osmocom/osmo-sgsn/default.nix new file mode 100644 index 000000000000..89afa75209b6 --- /dev/null +++ b/pkgs/servers/osmocom/osmo-sgsn/default.nix @@ -0,0 +1,57 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, libosmoabis +, libosmo-netif +, osmo-hlr +, osmo-ggsn +, c-ares +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-ggsn"; + version = "1.10.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-sgsn"; + rev = "${version}"; + hash = "sha256-tjExV8XigPEZ5gOCEoWfjhtGJVa5Ja3GHnpSovradak="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + libosmoabis + libosmo-netif + osmo-hlr + osmo-ggsn + c-ares + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom implementation of the 3GPP Serving GPRS Support Node (SGSN)"; + homepage = "https://osmocom.org/projects/osmosgsn"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 77f7854d1017..003b14cad2c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32872,6 +32872,8 @@ with pkgs; osmo-msc = callPackage ../servers/osmocom/osmo-msc { }; + osmo-sgsn = callPackage ../servers/osmocom/osmo-sgsn { }; + osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server { }; palemoon = callPackage ../applications/networking/browsers/palemoon { };