pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / servers / osmocom / osmo-sgsn / default.nix
blob9b71a9e1927d99245ef0114ed64b1a6766f608cb
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , pkg-config
6 , libosmocore
7 , libosmoabis
8 , libosmo-netif
9 , osmo-hlr
10 , osmo-ggsn
11 , c-ares
14 let
15   inherit (stdenv.hostPlatform) isLinux;
18 stdenv.mkDerivation rec {
19   pname = "osmo-sgsn";
20   version = "1.12.1";
22   src = fetchFromGitHub {
23     owner = "osmocom";
24     repo = "osmo-sgsn";
25     rev = version;
26     hash = "sha256-tcGnsLsVJohxaSfMbGfkHcBhLpbTZbXM+KWe2j34qeo=";
27   };
29   postPatch = ''
30     echo "${version}" > .tarball-version
31   '';
34   nativeBuildInputs = [
35     autoreconfHook
36     pkg-config
37   ];
39   buildInputs = [
40     libosmocore
41     libosmoabis
42     libosmo-netif
43     osmo-hlr
44     osmo-ggsn
45     c-ares
46   ];
48   enableParallelBuilding = true;
50   meta = {
51     description = "Osmocom implementation of the 3GPP Serving GPRS Support Node (SGSN)";
52     homepage = "https://osmocom.org/projects/osmosgsn";
53     license = lib.licenses.agpl3Plus;
54     maintainers = [ ];
55     platforms = lib.platforms.linux;
56     mainProgram = "osmo-sgsn";
57   };