nixpkgs/pkgs/servers/osmocom/osmo-sgsn/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
983 B
Nix
Raw Normal View History

2023-04-19 11:42:05 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libosmocore
, libosmoabis
, libosmo-netif
, osmo-hlr
, osmo-ggsn
, c-ares
}:
let
inherit (stdenv) isLinux;
in
stdenv.mkDerivation rec {
2024-05-24 20:51:40 +00:00
pname = "osmo-sgsn";
2024-08-07 21:07:29 +00:00
version = "1.12.0";
2023-04-19 11:42:05 +00:00
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-sgsn";
rev = version;
2024-08-07 21:07:29 +00:00
hash = "sha256-7roXf5+jZNtx9ZfPYIs5kojiTIHsGGh180cc7uv6hdk=";
2023-04-19 11:42:05 +00:00
};
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 = [ ];
2023-04-19 11:42:05 +00:00
platforms = lib.platforms.linux;
mainProgram = "osmo-sgsn";
2023-04-19 11:42:05 +00:00
};
}