diff options
author | Janik H <janik@aq0.de> | 2023-04-19 15:26:14 +0200 |
---|---|---|
committer | Janik H <janik@aq0.de> | 2023-04-19 22:10:50 +0200 |
commit | 0c051ec4f2047c1fdb398fd5d11d7b97a5d0a23c (patch) | |
tree | 1093b7541d6d4608dfa6db559e90d50e6b3482c8 /pkgs/servers/osmocom/osmo-pcu | |
parent | 405fe5f5b2887f4ae5f02d85beb492cbd8e08ffe (diff) |
osmo-pcu: init at 1.2.0
Diffstat (limited to 'pkgs/servers/osmocom/osmo-pcu')
-rw-r--r-- | pkgs/servers/osmocom/osmo-pcu/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/servers/osmocom/osmo-pcu/default.nix b/pkgs/servers/osmocom/osmo-pcu/default.nix new file mode 100644 index 0000000000000..99495d0dd1e8a --- /dev/null +++ b/pkgs/servers/osmocom/osmo-pcu/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-pcu"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-pcu"; + rev = "${version}"; + hash = "sha256-wZLTDvqVxP0FXV0VQH5KuigwbgzBipwL5JkTDp5Mzrc="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom Packet control Unit (PCU): Network-side GPRS (RLC/MAC); BTS- or BSC-colocated"; + homepage = "https://osmocom.org/projects/osmopcu"; + license = lib.licenses.gpl2Only; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} |